public class SimuTTC580 extends CanOpenTTC580
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,CarouselSocket> |
socketMapByID |
cobid1, cobid2, FILTERPRESENCE, LOCKSENSOR, pdo1, pdo2, sensorsMap, SLAVE_MODULE_SENSOR, XMINUS, XPLUSbooted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, serialNB, subs, tcpProxyalertSeparator| Constructor and Description |
|---|
SimuTTC580() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
initializeAndCheckHardware()
This methods has to be overridden if there is some initialization to do for
the device.
|
void |
simulateAllSocketCLAMPEDONFILTER()
Used to initialize simulation with a filter in each socket, and clamps
CLAMPEDONFILTER
|
void |
simulateClampFilterIsInError(boolean atStandby,
CarouselClamp clamp) |
void |
simulateClampFilterIsLockable(boolean atStandby,
CarouselClamp clamp)
filter is engaged and lockable if filterPresence sensor returns a value between
FilterPresenceValueA and FilterPresenceValueB
|
void |
simulateClampFilterIsNotLockable(boolean atStandby,
CarouselClamp clamp)
filter is not loackable if filterPresence sensor returns a value between
FilterPresenceValueB and FilterPresenceValueC
|
void |
simulateClampIsLocked(boolean atStandby,
CarouselClamp clamp) |
void |
simulateClampIsUnlocked(boolean atStandby,
CarouselClamp clamp) |
void |
simulateClampNoFilter(boolean atStandby,
CarouselClamp clamp)
simulate there is no filter in socket socketID clampX-
|
protected void |
simulateFilterPresenceXminusValue(boolean atStandby,
long newValue) |
protected void |
simulateFilterPresenceXplusValue(boolean atStandby,
long newValue) |
protected void |
simulateLockSensorXminusValue(boolean atStandby,
long lockValue) |
protected void |
simulateLockSensorXplusValue(boolean atStandby,
long newValue) |
void |
simulateNoSocketAtStandby() |
void |
simulateSlaveStatus(short slaveStatus)
Update pdo1 without update State
|
void |
simulateSlaveStatusNotAtS(short slaveStatus)
Update pdo2 without update State
|
void |
simulateSocketAtStandby(short socketID)
Update pdo1 to simulate that socket socketID is at Standby, simulate also
Slave Module Status in pdo1, update PDOData on the simulated interface to
CANopen.
|
void |
simulateSocketAtStandbyOthersNotAtStandby(short socketID) |
void |
simulateSocketClampedOnFilter(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby and update carousel
clamps state.
|
void |
simulateSocketNotAtStandby(short socketID)
Update pdo2 to simulate that socket socketID is not at Standby, simulate
also Slave Module Status in pdo2.
|
void |
simulateSocketREADYTOCLAMP(short id)
A socket is READYTOCLAMP when there is no filter, clampXminus is unlocked
and clampXplus is Locked.
|
void |
simulateSocketSensors(int pos) |
void |
simulateSocketUnclampedEmpty(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby and update
carousel clamps state.
|
void |
simulateSocketUnclampedOnFilter(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby and update carousel
clamps state.
|
void |
simuSocketAtSandbyIsLocked(short id)
Update pdo1 without update State
|
void |
simuSocketIsLocked(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby without update State
|
void |
simuSocketIsUnlocked(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby without update State
|
void |
simuSocketLockable(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby without update State
|
void |
simuSocketNoFilter(boolean atStandby,
short id)
Update pdo1 or pdo2 depending on param atStandby without update State
|
void |
simuSocketNotAtStandbyIsLocked(short id)
Update pdo2 without update State
|
void |
updateDisengageFromAC()
update socket at standby to simulate NOFILTER state.
|
void |
updateFakePDOData(int cobid,
long newPdo)
Update PDOData in the simulated interface to CANopen.
|
void |
updatePdo1ForNoSocketInPosition() |
void |
updateStoreFilterOnCarousel(int filterID)
update socket at standby to simulate that AC stores filter on carousel so
simulate CLAMPEDONFILTER state at standby.
|
build, createStatusDataPublishedByHYTTC580, displayError, doInitializePDOs, getCobid1, getCobid2, getOffset1Xminus, getOffset1Xplus, getOffset2Xminus, getOffset2Xplus, getPdo1, getPdo2, getSocketId, printSensorsValues, publishData, readInterlocksSDO, readOffset1SDO, readOffset2SDO, setPdo1, setPdo2, toString, updateFromPDO, updateSocketSensorsconfigAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, updateDeviceInfo, updateErrorHistory, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, getName, getNodeID, getSerialNB, initializePDOs, isBooted, isInitialized, printState, raiseAlarmIfMissing, raiseWarningIfMissing, setBooted, updateDeviceInfoonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertSeparator, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected final Map<String,CarouselSocket> socketMapByID
public void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class CanOpenTTC580public void simulateAllSocketCLAMPEDONFILTER()
public void initializeAndCheckHardware()
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDevicepublic void updateFakePDOData(int cobid,
long newPdo)
cobid - newPdo - public void simulateSocketAtStandby(short socketID)
socketID - socketID to simulate at Standbypublic void simulateSocketNotAtStandby(short socketID)
socketID - socketID to simulate not at standbypublic void updatePdo1ForNoSocketInPosition()
public void simulateSlaveStatus(short slaveStatus)
slaveStatus - public void simulateSlaveStatusNotAtS(short slaveStatus)
slaveStatus - @Command public void simuSocketAtSandbyIsLocked(short id)
id - public void simuSocketNotAtStandbyIsLocked(short id)
id - public void simuSocketIsLocked(boolean atStandby,
short id)
atStandby - id - public void simuSocketIsUnlocked(boolean atStandby,
short id)
atStandby - id - public void simuSocketLockable(boolean atStandby,
short id)
atStandby - id - public void simuSocketNoFilter(boolean atStandby,
short id)
atStandby - id - public void simulateSocketClampedOnFilter(boolean atStandby,
short id)
atStandby - id - public void simulateSocketUnclampedOnFilter(boolean atStandby,
short id)
atStandby - id - public void simulateSocketUnclampedEmpty(boolean atStandby,
short id)
atStandby - id - public void simulateSocketREADYTOCLAMP(short id)
id - protected void simulateLockSensorXminusValue(boolean atStandby,
long lockValue)
protected void simulateFilterPresenceXminusValue(boolean atStandby,
long newValue)
protected void simulateLockSensorXplusValue(boolean atStandby,
long newValue)
protected void simulateFilterPresenceXplusValue(boolean atStandby,
long newValue)
public void simulateClampIsLocked(boolean atStandby,
CarouselClamp clamp)
public void simulateClampIsUnlocked(boolean atStandby,
CarouselClamp clamp)
public void simulateClampFilterIsLockable(boolean atStandby,
CarouselClamp clamp)
atStandby - clamp - public void simulateClampFilterIsNotLockable(boolean atStandby,
CarouselClamp clamp)
atStandby - clamp - public void simulateClampNoFilter(boolean atStandby,
CarouselClamp clamp)
atStandby - clamp - public void simulateClampFilterIsInError(boolean atStandby,
CarouselClamp clamp)
public void simulateSocketAtStandbyOthersNotAtStandby(short socketID)
public void simulateNoSocketAtStandby()
public void simulateSocketSensors(int pos)
public void updateDisengageFromAC()
public void updateStoreFilterOnCarousel(int filterID)
filterID - Copyright © 2021 LSST. All rights reserved.