TwiceAsNice  2019-02-18
Public Member Functions | List of all members
AmplifierPowerSupplyFixture Struct Reference
Inheritance diagram for AmplifierPowerSupplyFixture:
Inheritance graph
Collaboration diagram for AmplifierPowerSupplyFixture:
Collaboration graph

Public Member Functions

virtual ~AmplifierPowerSupplyFixture ()
 
virtual void generateResponseInit ()
 
virtual ~AmplifierPowerSupplyFixture ()
 
virtual void generateResponseInit ()
 
- Public Member Functions inherited from AmplifierInfoFixture
 AmplifierInfoFixture ()
 
virtual ~AmplifierInfoFixture ()
 
virtual void open ()
 
 AmplifierInfoFixture ()
 
virtual ~AmplifierInfoFixture ()
 
virtual void open ()
 
- Public Member Functions inherited from Fixture
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
 ~Fixture ()
 
Nice::SeqDouble getSinusCurve (Nice::Time _duration, Nice::Time _period, Nice::Time _timeResolution, double _amplitude, double _phase, double _startPoint)
 
Nice::SeqDouble generateTrajectory (Nice::Time _duration, Nice::Time _period, Nice::Time _segmentLength, unsigned int _samplesPerSegment, double _amplitude, double _phase, double _currentPosition)
 
 Fixture ()
 
SeqSeqType setReconstructionMatrixFromFits (const std::string &fileName)
 
SeqSeqType setInjectionMatrixFromFits (const std::string &fileName)
 
Nice::SeqFloat setModeGainsFromFits (const std::string &fileName)
 
Nice::SeqDynamicBitset setPupilMaskFromFits (const std::string &fileName)
 
ImagePtr loadCcdImageFromFits (const std::string &fileName)
 
LoopDataPtr getLastLoopBuffer ()
 
void checkThatSlopesEqualsFitsFile (const std::string &fileName)
 
void checkThatModesWithGainEqualsFitsFile (const std::string &fileName)
 
void checkThatActuatorCommandsEqualsFitsFile (const std::string &fileName)
 
SeqSeqType setInverseInjectionMatrixFromFits (const std::string &fileName)
 
void setUpBase ()
 
void checkThatAbsoluteModesEqualsFitsFile (const std::string &fileName)
 
void setImageFlatToConstant (const float theFlat)
 
void setImageBiasToConstant (const float theBias)
 
 Fixture ()
 
void setUpSocketFactory ()
 
void givenThatAllCommunicationAttemptsFails ()
 
 Fixture ()
 
 ~Fixture ()
 
IoSwitchServiceWorkerPtr buildIoSwitchServiceWorker (Nice::JointPtr config)
 
void verifyThatWorkIntervalPropertyHasValue (Nice::Time expectedTime)
 
void workIntervalPropertyHasValue (Nice::Time setValue)
 
 Fixture ()
 
 Fixture ()
 
void checkThatCompletionExecutionResultsIn (Nice::CompletionState expected, const Nice::PropertyPtr &commandProperty, const std::string &failureMessage)
 
 ~Fixture ()
 
 Fixture ()
 
 ~Fixture ()
 
TestableIODeviceWutPtr buildTestableIODeviceWut ()
 
void checkThatReachabilityIs (const bool expectedReachableFlag)
 
 Fixture ()
 
void setUpSocketFactory ()
 
void givenThatAllCommunicationAttemptsFails ()
 
 Fixture ()
 
 Fixture ()
 
 ~Fixture ()
 
IoSwitchServiceWorkerPtr buildIoSwitchServiceWorker (Nice::JointPtr config)
 
void verifyThatWorkIntervalPropertyHasValue (Nice::Time expectedTime)
 
void workIntervalPropertyHasValue (Nice::Time setValue)
 
 Fixture ()
 
 Fixture ()
 
Nice::JointPtr buildConfigurationTree ()
 
TestableBasdaServiceWorkerPtr buildServiceWorker ()
 
void verifyThatDeviceHasBeenOpened (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasBeenInitialized (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasDetectedReachability (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasUpdatedProperties (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
unsigned times (unsigned x)
 
 Fixture ()
 
ZeroInitializedReplyBuilder_ buildReply (const size_t payloadLenInDword)
 
BcuReplyPtr buildWithZerosInitializedReply (size_t payloadLengthInDword)
 
BcuReplyPtr buildSuccessfulReply (size_t payloadLengthInDword)
 
MemoryBufferCheck checkThatMemoryBuffer (const MemoryBufferPtr &b)
 
BcuReadCommandCheck checkThatBcuReadCommand (int udpConnectionCommandIndex)
 
BcuReplyAdd addBcuReply (unsigned payloadSizeInDword)
 
BcuWriteCommandgetBcuWriteCommand (size_t commandIndex)
 
void givenThatBcuInternalCodeExecutionTimeoutToleranceIs (const size_t tolerance)
 
 Fixture ()
 
 ~Fixture ()
 
BcuReplyPtr getBcuReplyWithMessageId (uint8_t expectedMessageId)
 
void send (BcuCommandPtr command)
 
FixturebcuCommand (OpCode opCode)
 
FixturemessageId (uint8_t messageId)
 
FixturememoryAddress (uint32_t addr)
 
Fixturepayload (int32_t payload)
 
void checkWrite ()
 
void checkRead ()
 
 Fixture ()
 
int32_tcreateLinearDisplayTable ()
 
CcdFrameArchivePtr createCcd39FrameSaver (const std::string &fileName)
 
int getValueForKeyword (const std::string &keyword, const char *text)
 
void fillCcdFrame (MasterBcuDiagnosticRecordPtr bcuRecord, uint16_t pixelColor)
 
void deleteExistingFile (const std::string &filename)
 
MasterBcuDiagnosticRecordPtr bcu39DiagnosticRecordWithConstantPixels (uint16_t pixelColor)
 
void checkFitsKeywordOfTypeLong (fitsfile *fptr, const char *keyname, long expectedValue)
 
void checkThatFirstHduHasConstantPixels (const std::string &fileName, int16_t pixelColor)
 
void checkThatSecondHduHasConstantPixels (const std::string &fileName, int16_t pixelColor)
 
void checkThatOnlyFitsFileHasOnlyTwoHdus (const std::string &fileName)
 
ByteBufferPtr createByteBufferFromString (const std::string &payload)
 
void setDiagFilePath (const std::string &path)
 
 ~Fixture ()
 
 Fixture ()
 
 Fixture ()
 
unsigned getBufferLengthInDword (int writeRequestIndex)
 
 Fixture ()
 
string inSourceDir (const string &fileName)
 
void createEmptyFile (const std::string &fileName)
 
 Fixture ()
 
void checkThatReachabilityPropertyIs (const bool reachable)
 
 Fixture ()
 
 Fixture ()
 
void thenSerialLineReceivedOnly (const string &message)
 
ReadingFromSerialLineResult readingFromSerialLineWillReturn (const std::string &message)
 
void writingToSerialLineWillReturnNumOfByte (unsigned numOfWrittenByte)
 
void writingToSerialLineWillSucceed ()
 
void readingFromSerialLineWillThrowException ()
 
void writingToSerialLineWillThrowException ()
 
 Fixture ()
 
 Fixture ()
 
Nice::JointPtr buildConfigTreeForDevice (const std::string &deviceName)
 
 Fixture ()
 
void resetDevice ()
 
void whenWritingToDevice (const std::string &message)
 
void thenDeviceRespondsWith (const std::string &message)
 
 Fixture ()
 
void givenThatSerialLineAlwaysReturns (const std::string &response)
 
void verifyThatGeneratorHasSent (const std::string &message)
 
bool dontInspectExceptionFurther (const PulseGeneratorException &)
 
 Fixture ()
 
 Fixture ()
 
void thenSerialLineReceivedOnly (const string &message)
 
ReadingFromSerialLineResult readingFromSerialLineWillReturn (const std::string &message)
 
void writingToSerialLineWillReturnNumOfByte (unsigned numOfWrittenByte)
 
void writingToSerialLineWillSucceed ()
 
void readingFromSerialLineWillThrowException ()
 
void writingToSerialLineWillThrowException ()
 
 Fixture ()
 
 Fixture ()
 
void resetDevice ()
 
void whenWritingToDevice (const std::string &message)
 
void thenDeviceRespondsWith (const std::string &message)
 
 Fixture ()
 
Nice::JointPtr buildConfigTreeForDevice (const std::string &deviceName)
 
 Fixture ()
 
 ~Fixture ()
 
BcuReplyPtr getBcuReplyWithMessageId (uint8_t expectedMessageId)
 
void send (BcuCommandPtr command)
 
FixturebcuCommand (OpCode opCode)
 
FixturemessageId (uint8_t messageId)
 
FixturememoryAddress (uint32_t addr)
 
Fixturepayload (int32_t payload)
 
void checkWrite ()
 
void checkRead ()
 
 Fixture ()
 
int32_tcreateLinearDisplayTable ()
 
CcdFrameArchivePtr createCcd39FrameSaver (const std::string &fileName)
 
int getValueForKeyword (const std::string &keyword, const char *text)
 
void fillCcdFrame (MasterBcuDiagnosticRecordPtr bcuRecord, uint16_t pixelColor)
 
void deleteExistingFile (const std::string &filename)
 
MasterBcuDiagnosticRecordPtr bcu39DiagnosticRecordWithConstantPixels (uint16_t pixelColor)
 
void checkFitsKeywordOfTypeLong (fitsfile *fptr, const char *keyname, long expectedValue)
 
void checkThatFirstHduHasConstantPixels (const std::string &fileName, int16_t pixelColor)
 
void checkThatSecondHduHasConstantPixels (const std::string &fileName, int16_t pixelColor)
 
void checkThatOnlyFitsFileHasOnlyTwoHdus (const std::string &fileName)
 
ByteBufferPtr createByteBufferFromString (const std::string &payload)
 
void setDiagFilePath (const std::string &path)
 
 ~Fixture ()
 
 Fixture ()
 
 Fixture ()
 
ZeroInitializedReplyBuilder_ buildReply (const size_t payloadLenInDword)
 
BcuReplyPtr buildWithZerosInitializedReply (size_t payloadLengthInDword)
 
BcuReplyPtr buildSuccessfulReply (size_t payloadLengthInDword)
 
MemoryBufferCheck checkThatMemoryBuffer (const MemoryBufferPtr &b)
 
BcuReadCommandCheck checkThatBcuReadCommand (int udpConnectionCommandIndex)
 
BcuReplyAdd addBcuReply (unsigned payloadSizeInDword)
 
BcuWriteCommandgetBcuWriteCommand (size_t commandIndex)
 
void givenThatBcuInternalCodeExecutionTimeoutToleranceIs (const size_t tolerance)
 
 Fixture ()
 
unsigned getBufferLengthInDword (int writeRequestIndex)
 
 Fixture ()
 
string inSourceDir (const string &fileName)
 
void createEmptyFile (const std::string &fileName)
 
 Fixture ()
 
 Fixture ()
 
void checkThatReachabilityPropertyIs (const bool reachable)
 
 Fixture ()
 
void givenThatSerialLineAlwaysReturns (const std::string &response)
 
void verifyThatGeneratorHasSent (const std::string &message)
 
bool dontInspectExceptionFurther (const PulseGeneratorException &)
 
 Fixture ()
 
Nice::JointPtr buildConfigurationTree ()
 
TestableBasdaServiceWorkerPtr buildServiceWorker ()
 
void verifyThatDeviceHasBeenOpened (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasBeenInitialized (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasDetectedReachability (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
void verifyThatDeviceHasUpdatedProperties (PulseGeneratorDeviceMockPtr device, unsigned expectedCount)
 
unsigned times (unsigned x)
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createInstances ()
 
void setIsReachable (const bool state)
 
 Fixture ()
 
virtual ~Fixture ()
 
void setResponse (unsigned int _cmdID, std::string _response)
 
virtual void generateConnectionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
virtual void addProperties ()
 
virtual void close ()
 
 Fixture (std::string _moduleNode)
 
virtual ~Fixture ()
 
virtual void close ()
 
void createActorProperties (std::string _actorName, int _channel, int _slave, int _currentSource, int _maxCurrent, std::string _type)
 
void createMappingProperty (std::string _fiberPlateID, std::string _moduleName, std::string _actorName)
 
 Fixture (std::string _moduleNode)
 
virtual ~Fixture ()
 
virtual void close ()
 
void createSensorProperties (std::string _connector, int _channel, int _id, std::string _type, int _unitTemperature, int _unitHumidity)
 
void createMappingProperty (std::string _sensorName, std::string _moduleName, std::string _connector)
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createActorProperties (std::string _actorName, int _channel, int _slave, int _currentSource, int _maxCurrent, std::string _type)
 
void createMappingProperty (std::string _fiberPlateID, std::string _moduleName, std::string _actorName)
 
void createInstances ()
 
void setIsReachable (const bool state)
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createSensorProperties (std::string _connector, int _channel, int _id, std::string _type, int _unitTemperature, int _unitHumidity)
 
void createMappingProperty (std::string _sensorName, std::string _moduleName, std::string _connector)
 
void createInstances ()
 
void setIsReachable (const bool state)
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
 ~Fixture ()
 
 Fixture ()
 
 ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createInstances ()
 
void setIsReachable (const bool state)
 
 Fixture ()
 
virtual ~Fixture ()
 
virtual void close ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void setResponse (unsigned int _cmdID, std::string _response)
 
virtual void generateConnectionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
virtual void addProperties ()
 
virtual void close ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void generateResponseInit ()
 
void init ()
 
void createInstances ()
 
void setIsReachable (const bool state)
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture (std::string _moduleNode)
 
virtual ~Fixture ()
 
virtual void close ()
 
void createActorProperties (std::string _actorName, int _channel, int _slave, int _currentSource, int _maxCurrent, std::string _type)
 
void createMappingProperty (std::string _fiberPlateID, std::string _moduleName, std::string _actorName)
 
 Fixture (std::string _moduleNode)
 
virtual ~Fixture ()
 
virtual void close ()
 
void createSensorProperties (std::string _connector, int _channel, int _id, std::string _type, int _unitTemperature, int _unitHumidity)
 
void createMappingProperty (std::string _sensorName, std::string _moduleName, std::string _connector)
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createActorProperties (std::string _actorName, int _channel, int _slave, int _currentSource, int _maxCurrent, std::string _type)
 
void createMappingProperty (std::string _fiberPlateID, std::string _moduleName, std::string _actorName)
 
void createInstances ()
 
void setIsReachable (const bool state)
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void createSensorProperties (std::string _connector, int _channel, int _id, std::string _type, int _unitTemperature, int _unitHumidity)
 
void createMappingProperty (std::string _sensorName, std::string _moduleName, std::string _connector)
 
void createInstances ()
 
void setIsReachable (const bool state)
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
virtual ~Fixture ()
 
void open ()
 
void close ()
 
void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time())
 
virtual void generateConnectionString ()
 
virtual void generateVersionString ()
 
 Fixture ()
 
 ~Fixture ()
 
Nice::SeqDouble getSinusCurve (Nice::Time _duration, Nice::Time _period, Nice::Time _timeResolution, double _amplitude, double _phase, double _startPoint)
 
Nice::SeqDouble generateTrajectory (Nice::Time _duration, Nice::Time _period, Nice::Time _segmentLength, unsigned int _samplesPerSegment, double _amplitude, double _phase, double _currentPosition)
 
 Fixture ()
 
virtual ~Fixture ()
 
Nice::NPoint getTrajectory (double _dec, double _HA_min, double _HA_max, double _frequency, double _currentPosition, int _direction=1)
 
Nice::MapStringDouble SlaAltAz (double ha, double dec, double phi)
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
virtual ~Fixture ()
 
 Fixture ()
 
 Fixture ()
 
 Fixture ()
 
 Fixture ()
 
 Fixture ()
 
 Fixture ()
 
string getSrcdir ()
 
string getSrcdir ()
 
 Fixture ()
 
void checkColorsInPalette (QPalette &p, const std::string &expectedForegroundColor, const std::string &expectedBackgroundColor)
 
std::string fg (const std::string &s)
 
std::string bg (const std::string &s)
 
- Public Member Functions inherited from Basda::ResponseMocon
 ResponseMocon ()
 
virtual ~ResponseMocon ()
 
virtual void generateResponseClose ()
 
 ResponseMocon ()
 
virtual ~ResponseMocon ()
 
virtual void generateResponseClose ()
 
- Public Member Functions inherited from Basda::ResponseCore
 ResponseCore ()
 
 ResponseCore (unsigned int _cardNo, unsigned int _moduleNo)
 
virtual ~ResponseCore ()
 
virtual void generateResponseOpen ()
 
virtual void setResponse (unsigned int _cmdID, std::string _response, std::string _event="", Nice::Time _time=Nice::Time(), bool _repeat=false)
 
virtual void setResponse (unsigned int _cmdID, std::string _response, bool _repeat)
 
- Public Member Functions inherited from Basda::ResponseUnimod
 ResponseUnimod ()
 
virtual ~ResponseUnimod ()
 
- Public Member Functions inherited from Basda::ResponseCocon
 ResponseCocon ()
 
virtual ~ResponseCocon ()
 
- Public Member Functions inherited from basda::quantumcomposers::BasdaDeviceFixture
 BasdaDeviceFixture ()
 
void createNewPropertyTree ()
 
void fillPropertyTreeForNumberOfChannels (const int numberOfChannels)
 
void createNewBasdaDevice ()
 
void openBasdaDevice ()
 
Nice::Completion exec ()
 
void givenThatHardwareAlwaysFails ()
 
void givenThatHardwareSucceeds ()
 
void givenThatPulseGeneratorReturnsAsChannelOutputMode (const OutputMode &m)
 
void givenThatPulseGeneratorReturnsAsClockPeriodInSeconds (double result)
 
void givenThatPulseGeneratorReturnsAsExternalTriggerStatus (bool result)
 
void givenThatPulseGeneratorReturnsAsInternalOutputMode (const OutputMode &mode)
 
void givenThatPulseGeneratorReturnsNumberOfPulsesDuringOnCycle (unsigned numberOfPulses)
 
void givenThatPulseGeneratorReturnsAsOutputChannelEnableStatus (bool result)
 
void givenThatPulseGeneratorReturnsAsOutputPulseWidthInSeconds (const OutputChannel &channel, double pulseWidth)
 
void givenThatPulseGeneratorReturnsAsPulsePolarity (const PulsePolarity &polarity)
 
void givenThatPulseGeneratorReturnsAsPulseDelayInSeconds (const OutputChannel &c, double resultInSeconds)
 
template<class T >
void writeProperty (const string &propertyName, T value)
 
template<class T >
void whenWritingProperty (const string &propertyName, T value)
 
template<class T >
void writeSetValueProperty (const string &propertyName, T setValue)
 
template<class T >
void whenWritingSetValue (const string &propertyName, T setValue)
 
unsigned times (unsigned numberOfInvocations)
 
template<class T >
void verifyProperty (T expected, const string &propertyName)
 
template<class T >
void verifyCurrentValueProperty (T expected, const string &propertyName)
 
template<class T >
void verifyAttribute (T expected, const string &propertyName, const string &attributeName)
 
void verifyThatLatestHardwareConnectionEndpointIs (const string &hostname, unsigned portNr)
 
void verifyThatNumberOfNewHardwareConnectionsIs (unsigned expected)
 
void verifyThatPulseGeneratorHasDisabledExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasDisabledOutputChannel (OutputChannel channel, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasEnabledExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasEnabledOutputChannel (const OutputChannel &channel, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasGeneratedSoftwareExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetClockPeriod (unsigned expected)
 
void verifyThatPulseGeneratorHasSetClockPeriodTo (double expected)
 
void verifyThatPulseGeneratorHasSetInternalOutputModeToSingleShotMode (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetInternalOutputModeToContinuousMode (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesForOffCycleTo (const OutputChannel &c, unsigned invocationCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesDuringOnCycle (const OutputChannel &c, unsigned invocationCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesForOnCycleTo (const OutputChannel &c, unsigned numberOfPulses)
 
void verifyThatPulseGeneratorHasSetPulseDelay (unsigned expectedCount, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasSetPulseDelayTo (double expectedDelayInSeconds, const OutputChannel &c)
 
void verifyThatPulseGeneratorHasSetPulseWidth (unsigned expectedCount, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasSetPulseWidthTo (double expectedPulseWidth, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasStartedOutput (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetStoppedOutput (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasUsedContinuousModeFor (const OutputChannel &c, unsigned expectedInvocationCount)
 
void verifyThatPulseGeneratorHasUsedDutyCycleModeFor (const OutputChannel &c, unsigned expectedNumberOfInvocations)
 
void verifyThatPulseGeneratorHasUsedInvertedPolarityFor (const OutputChannel &c, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasUsedNormalPulsePolarityFor (const OutputChannel &c, unsigned expectedCount)
 
 BasdaDeviceFixture ()
 
void createNewPropertyTree ()
 
void fillPropertyTreeForNumberOfChannels (const int numberOfChannels)
 
void createNewBasdaDevice ()
 
void openBasdaDevice ()
 
Nice::Completion exec ()
 
void givenThatHardwareAlwaysFails ()
 
void givenThatHardwareSucceeds ()
 
void givenThatPulseGeneratorReturnsAsChannelOutputMode (const OutputMode &m)
 
void givenThatPulseGeneratorReturnsAsClockPeriodInSeconds (double result)
 
void givenThatPulseGeneratorReturnsAsExternalTriggerStatus (bool result)
 
void givenThatPulseGeneratorReturnsAsInternalOutputMode (const OutputMode &mode)
 
void givenThatPulseGeneratorReturnsNumberOfPulsesDuringOnCycle (unsigned numberOfPulses)
 
void givenThatPulseGeneratorReturnsAsOutputChannelEnableStatus (bool result)
 
void givenThatPulseGeneratorReturnsAsOutputPulseWidthInSeconds (const OutputChannel &channel, double pulseWidth)
 
void givenThatPulseGeneratorReturnsAsPulsePolarity (const PulsePolarity &polarity)
 
void givenThatPulseGeneratorReturnsAsPulseDelayInSeconds (const OutputChannel &c, double resultInSeconds)
 
template<class T >
void writeProperty (const string &propertyName, T value)
 
template<class T >
void whenWritingProperty (const string &propertyName, T value)
 
template<class T >
void writeSetValueProperty (const string &propertyName, T setValue)
 
template<class T >
void whenWritingSetValue (const string &propertyName, T setValue)
 
unsigned times (unsigned numberOfInvocations)
 
template<class T >
void verifyProperty (T expected, const string &propertyName)
 
template<class T >
void verifyCurrentValueProperty (T expected, const string &propertyName)
 
template<class T >
void verifyAttribute (T expected, const string &propertyName, const string &attributeName)
 
void verifyThatLatestHardwareConnectionEndpointIs (const string &hostname, unsigned portNr)
 
void verifyThatNumberOfNewHardwareConnectionsIs (unsigned expected)
 
void verifyThatPulseGeneratorHasDisabledExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasDisabledOutputChannel (OutputChannel channel, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasEnabledExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasEnabledOutputChannel (const OutputChannel &channel, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasGeneratedSoftwareExternalTrigger (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetClockPeriod (unsigned expected)
 
void verifyThatPulseGeneratorHasSetClockPeriodTo (double expected)
 
void verifyThatPulseGeneratorHasSetInternalOutputModeToSingleShotMode (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetInternalOutputModeToContinuousMode (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesForOffCycleTo (const OutputChannel &c, unsigned invocationCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesDuringOnCycle (const OutputChannel &c, unsigned invocationCount)
 
void verifyThatPulseGeneratorHasSetNumberOfPulsesForOnCycleTo (const OutputChannel &c, unsigned numberOfPulses)
 
void verifyThatPulseGeneratorHasSetPulseDelay (unsigned expectedCount, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasSetPulseDelayTo (double expectedDelayInSeconds, const OutputChannel &c)
 
void verifyThatPulseGeneratorHasSetPulseWidth (unsigned expectedCount, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasSetPulseWidthTo (double expectedPulseWidth, const OutputChannel &channel)
 
void verifyThatPulseGeneratorHasStartedOutput (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasSetStoppedOutput (unsigned expectedCount)
 
void verifyThatPulseGeneratorHasUsedContinuousModeFor (const OutputChannel &c, unsigned expectedInvocationCount)
 
void verifyThatPulseGeneratorHasUsedDutyCycleModeFor (const OutputChannel &c, unsigned expectedNumberOfInvocations)
 
void verifyThatPulseGeneratorHasUsedInvertedPolarityFor (const OutputChannel &c, unsigned expectedCount)
 
void verifyThatPulseGeneratorHasUsedNormalPulsePolarityFor (const OutputChannel &c, unsigned expectedCount)
 
- Public Member Functions inherited from basda::gentec::PlinkPowerMeterDeviceFixture
 PlinkPowerMeterDeviceFixture ()
 
void startUpNiceApplication ()
 
void setUpTestablePlinkPowerMeterDevice ()
 
void setupTestablePlinkPowerMeterDeviceUsingTcpConnection ()
 
Nice::PropertyPtr getMeasuredPowerProperty ()
 
MeasuredPowerPropertyVerification verifyThatMeasuredPowerPropertyHasValue (double expectedPower)
 
void verifyThatMeasuredPowerPropertyHasInvalidValue ()
 
 PlinkPowerMeterDeviceFixture ()
 
void startUpNiceApplication ()
 
void setUpTestablePlinkPowerMeterDevice ()
 
void setupTestablePlinkPowerMeterDeviceUsingTcpConnection ()
 
Nice::PropertyPtr getMeasuredPowerProperty ()
 
MeasuredPowerPropertyVerification verifyThatMeasuredPowerPropertyHasValue (double expectedPower)
 
void verifyThatMeasuredPowerPropertyHasInvalidValue ()
 
- Public Member Functions inherited from mpia::BasicIODeviceWutFixture
Nice::PropertyPtr getOutputPortSettingCommandProperty ()
 
void setPortIndexAttributeOfOutputPortSettingCommandTo (int portIndex)
 
void setPortStateAttributeOfOutputPortSettingCommandTo (const std::string &state)
 
void writeToOutputPortSettingCommandProperty ()
 

Additional Inherited Members

- Public Types inherited from Fixture
typedef map< string, stringDictionaryT
 
typedef map< string, stringDictionaryT
 
- Public Types inherited from basda::quantumcomposers::BasdaDeviceFixture
typedef std::string string
 
typedef std::string string
 
- Public Types inherited from basda::gentec::PlinkPowerMeterDeviceFixture
typedef std::string string
 
typedef std::map< string, stringDictionaryT
 
typedef std::string string
 
typedef std::map< string, stringDictionaryT
 
- Static Public Member Functions inherited from Fixture
static void printMatrix (SeqSeqType &m, size_t nRows, size_t nCols)
 
static void printError (const int status)
 
static void load2DFits (const std::string &fitsFileName, SeqSeqType &matrix)
 
static void load1DFits (const std::string &fitsFileName, Nice::SeqFloat &vector)
 
static void fillBitmaskFromFits (Nice::SeqDynamicBitset &pupilMask, const std::string &fileName)
 
static int32_tgetPayload (const BcuReplyPtr &reply)
 
static int32_tgetPayload (const BcuReplyPtr &reply)
 
- Static Public Member Functions inherited from basda::gentec::PlinkPowerMeterDeviceFixture
static Nice::JointPtr buildConfigTreeForSerialLine ()
 
static Nice::JointPtr buildConfigTreeForTcpConnection ()
 
static void insertLoadName (Nice::JointPtr config, string loadName)
 
static Nice::JointPtr buildConfigTreeForSerialLine ()
 
static Nice::JointPtr buildConfigTreeForTcpConnection ()
 
static void insertLoadName (Nice::JointPtr config, string loadName)
 
- Static Public Member Functions inherited from mpia::BasicIODeviceWutFixture
static Nice::JointPtr buildConfigTree ()
 
static void insertLoadName (const Nice::JointPtr &config, const std::string &loadName)
 
- Public Attributes inherited from AmplifierInfoFixture
std::string m_moduleNode
 
- Public Attributes inherited from Fixture
Laos::DrotServiceWorkerMockPtr m_worker
 
Laos::DrotServiceWorkerInterfacePtr m_drot
 
Basda::MoConNDeviceDummyPtr m_device
 
Laos::StarEnlargerServiceWorkerm_service
 
Laos::StarEnlargerServiceWorkerInterfacePtr m_client
 
Nice::JointPtr m_config
 
std::string m_serviceName
 
Nice::JointPtr config
 
LoopPtr loop
 
unsigned N_MAX_SPARE_SOCKETS
 
WebSocketFakePtr wrapped
 
vector< WebSocketFakePtrspareSockets
 
GlitchWebSocketPtr sock
 
WebSocketFactoryFakePtr socketFactory
 
unsigned glitchReportThreshold
 
Nice::JointPtr configRoot
 
mpia::MyDummyNiceApplication app
 
std::vector< AnalogIODevicePtr > devices
 
FakeIoDevicePtr device_1
 
FakeIoDevicePtr device_2
 
IoSwitchServiceWorkerPtr serviceWorker
 
FakeWutSocketPtr wutSocket
 
WebSocketImplPtr webSocket
 
IODeviceWutFakePtr device
 
BasdaDeviceMockPtr device
 
BasdaServiceWorker::DeviceContainer devices
 
PulseGeneratorDeviceMockPtr dev_1
 
PulseGeneratorDeviceMockPtr dev_2
 
TestableBasdaServiceWorkerPtr worker
 
UdpConnectionMockPtr connection
 
BcuDriverImplPtr driver
 
UdpConnectionImpl connection
 
int32_t payload_
 
uint32_t addr_
 
uint8_t messageId_
 
OpCode opCode_
 
MemoryBufferPtr displayTable
 
const string OUTPUT_FITS_FILE_NAME
 
const unsigned N_CCD39_PIXELS
 
std::string diagFilePath
 
DiagnosticRecordReceiverMockPtr receiver
 
BufferStoreMockPtr saver
 
DiagnosticRecordDumper dumper
 
ByteBufferPtr buffer
 
MasterBcuDiagnosticRecordPtr record
 
BcuDriverMockPtr bcuDriver
 
const int8_t SOME_MESSAGE_ID
 
BcuDriverMockPtr bcu
 
Basda::PowerMeterDevicePtr device
 
PlinkPowerMeterImplPtr powerMeter
 
SerialLineFakePtr serialLine
 
PlinkPowerMeterPtr powerMeter
 
DummyNiceApplication app
 
Nice::JointPtr configTree
 
PowerMeterDeviceFakePtr deviceFake_1
 
PowerMeterDeviceFakePtr deviceFake_2
 
basda::PowerMeterServiceWorker::PowerMeterDeviceSet deviceFakes
 
TestablePowerMeterServiceWorkerPtr worker
 
ChatSerialLine device
 
SerialLineMockPtr serialLine
 
PulseGeneratorPtr generator
 
Basda::CoConCardPtr m_card
 
Basda::MPIACoreProtocolPtr m_protocol
 
unsigned int m_cardNo
 
unsigned int m_moduleNo
 
std::string m_endl
 
bool m_isReachable
 
Nice::Mutex m_mutex
 
Basda::ChatLineMockCorePtr m_chat
 
Basda::WheelMoConNDeviceDummyMockPtr m_nDeviceDummy
 
Basda::MoccaWheelServiceWorkerPtr m_worker
 
Basda::MoccaWheelServiceWorkerInterfacePtr m_wheel
 
Basda::MoConNDevicePtr nDevice
 
DeviceCmdAsyncImpl m_asynch
 
std::string m_moduleNode
 
Basda::UniModLCDevicePtr lcDevice
 
Basda::UniModTHDevicePtr thDevice
 
Basda::UniModModuleLightSourcePtr m_module
 
Basda::UniModCardPtr m_card
 
Basda::UniModModuleTemperatureHumidityPtr m_module
 
Basda::MoccaNDeviceDummyPtr m_device
 
Basda::CoConCDevicePtr cDevice
 
Basda::MoConModulePtr m_module
 
Basda::MoConCardPtr m_card
 
Basda::MoConNDevicePtr m_device
 
Basda::MoccaTrajServiceWorkerm_service
 
Basda::MoccaTrajServiceWorkerInterfacePtr m_client
 
Basda::MoccaTrajServiceWorkerMockPtr m_worker
 
Basda::MoccaTrajServiceWorkerInterfacePtr m_traj
 
double m_phi
 
double m_stepsPerRad
 
Nice::JointPtr tree
 
Nice::LogMessageComposition elements
 
- Public Attributes inherited from Basda::ResponseCore
unsigned int m_cardNo
 
unsigned int m_moduleNo
 
std::string m_endl
 
std::map< std::string, Nice::ChatLinePtrm_chat
 
- Public Attributes inherited from basda::quantumcomposers::BasdaDeviceFixture
TestableBasdaDevicePtr device
 
Nice::JointPtr config
 
PulseGeneratorMockPtr pulseGenerator
 
PulseGeneratorFactoryMockPtr pulseGeneratorFactory
 
- Public Attributes inherited from basda::gentec::PlinkPowerMeterDeviceFixture
DummyApplication app
 
TestablePlinkPowerMeterDevicePtr device
 
PlinkPowerMeterFactoryFakePtr powerMeterFactoryFake
 
PlinkPowerMeterFakePtr powerMeterFake
 
Nice::JointPtr config
 
- Public Attributes inherited from mpia::BasicIODeviceWutFixture
Nice::JointPtr config
 
WebSocketFakePtr webSocket
 
WebSocketFactoryFakePtr webSocketFactory
 
TestableIODeviceWutPtr device
 
- Static Public Attributes inherited from Fixture
static std::string s_name
 

Constructor & Destructor Documentation

◆ ~AmplifierPowerSupplyFixture() [1/2]

virtual AmplifierPowerSupplyFixture::~AmplifierPowerSupplyFixture ( )
inlinevirtual

◆ ~AmplifierPowerSupplyFixture() [2/2]

virtual AmplifierPowerSupplyFixture::~AmplifierPowerSupplyFixture ( )
inlinevirtual

Member Function Documentation

◆ generateResponseInit() [1/2]

virtual void AmplifierPowerSupplyFixture::generateResponseInit ( )
inlinevirtual

Reimplemented from Fixture.

◆ generateResponseInit() [2/2]

virtual void AmplifierPowerSupplyFixture::generateResponseInit ( )
inlinevirtual

Reimplemented from Fixture.


The documentation for this struct was generated from the following file: