public class AutochangerTruckModule extends org.lsst.ccs.framework.Module implements MovedByEPOSController
| Modifier and Type | Field and Description |
|---|---|
protected NumericSensor |
handoffPositionSensor |
protected NumericSensor |
handoffPositionSensorB |
protected Lock |
lock |
protected NumericSensor |
onlinePositionSensor |
protected NumericSensor |
onlinePositionSensorB |
protected NumericSensor |
standbyPositionSensor |
protected NumericSensor |
standbyPositionSensorB |
protected boolean |
updatingState |
| Constructor and Description |
|---|
AutochangerTruckModule(NumericSensor handoffPositionSensor,
NumericSensor handoffPositionSensorB,
NumericSensor onlinePositionSensor,
NumericSensor onlinePositionSensorB,
NumericSensor standbyPositionSensor,
NumericSensor standbyPositionSensorB) |
| Modifier and Type | Method and Description |
|---|---|
StatusDataPublishedByAutochangerTruck |
createStatusDataPublishedByAutoChangerTruck()
Creates an object to be published on the status bus.
|
String |
getControllerName()
Return the name of the controller.
|
NumericSensor |
getHandoffPositionSensor() |
NumericSensor |
getHandoffPositionSensorB() |
NumericSensor |
getOnlinePositionSensor() |
NumericSensor |
getOnlinePositionSensorB() |
int |
getPosition()
Return truck position enregistred in field position.
|
NumericSensor |
getStandbyPositionSensor() |
NumericSensor |
getStandbyPositionSensorB() |
StatusDataPublishedByAutochangerTruck |
getStatusData()
Build the class StatusDataPublishedByAutoChangerTrucks
|
void |
initModule() |
boolean |
isAtHandoff() |
boolean |
isAtOnline() |
boolean |
isAtStandby() |
boolean |
isControllerInFault()
Return true if controller is in fault.
|
boolean |
isHandoffSensorsInError()
Return false if the 2 redondant position sensors at Handoff are equal.
|
boolean |
isOnlineSensorsInError()
Return false if the 2 redondant position sensors at Online are equal.
|
boolean |
isPositionSensorsInError()
Return true if position sensors are in error.
|
boolean |
isStandbySensorsInError()
Return false if the 2 redondant position sensors at Standby are equal.
|
void |
publishData() |
void |
setControllerInFault(boolean controllerInFault) |
void |
updatePosition()
Updates the field position of the truck in reading the CPU of the
controller.
|
protected void |
updateStateWithSensors(String[] readHexaValues)
This methods updates the lockStatus from an array of hexaValues.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEmergencyMessage, processFaultReset, processUpdategetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected final Lock lock
protected NumericSensor handoffPositionSensor
protected NumericSensor handoffPositionSensorB
protected NumericSensor onlinePositionSensor
protected NumericSensor onlinePositionSensorB
protected NumericSensor standbyPositionSensor
protected NumericSensor standbyPositionSensorB
protected volatile boolean updatingState
public AutochangerTruckModule(NumericSensor handoffPositionSensor, NumericSensor handoffPositionSensorB, NumericSensor onlinePositionSensor, NumericSensor onlinePositionSensorB, NumericSensor standbyPositionSensor, NumericSensor standbyPositionSensorB)
@Command(type=QUERY,
level=1,
description="Return true if truck is at HANDOFF position.")
public boolean isAtHandoff()
@Command(type=QUERY,
level=1,
description="Return true if truck is at ONLINE position.")
public boolean isAtOnline()
@Command(type=QUERY,
level=1,
description="Return true if truck is at STANDBY position.")
public boolean isAtStandby()
@Command(type=QUERY,
level=1,
description="Return false if the 2 redondant position sensors at Standby are equal. Doesn\'t read again sensors.")
public boolean isStandbySensorsInError()
@Command(type=QUERY,
level=1,
description="Return false if the 2 redondant position sensors at Handoff are equal.Doesn\'t read again sensors.")
public boolean isHandoffSensorsInError()
@Command(type=QUERY,
level=1,
description="Return false if the 2 redondant position sensors at Online are equal.Doesn\'t read again sensors.")
public boolean isOnlineSensorsInError()
@Command(type=QUERY,
level=1,
description="Return true if position sensors are in error.Doesn\'t read again sensors.")
public boolean isPositionSensorsInError()
public NumericSensor getHandoffPositionSensor()
public NumericSensor getHandoffPositionSensorB()
public NumericSensor getOnlinePositionSensor()
public NumericSensor getOnlinePositionSensorB()
public NumericSensor getStandbyPositionSensor()
public NumericSensor getStandbyPositionSensorB()
@Command(type=QUERY,
level=1,
description="return truck position.")
public int getPosition()
@Command(type=QUERY,
level=1,
description="return controller name.")
public String getControllerName()
MovedByEPOSControllergetControllerName in interface MovedByEPOSController@Command(type=QUERY,
level=1,
description="Return true if the controller is in fault.")
public boolean isControllerInFault()
isControllerInFault in interface MovedByEPOSControllerpublic void setControllerInFault(boolean controllerInFault)
setControllerInFault in interface MovedByEPOSControllerpublic void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Update truck position in reading controller.")
public void updatePosition()
protected void updateStateWithSensors(String[] readHexaValues)
readHexaValues - FcsHardwareExceptionpublic StatusDataPublishedByAutochangerTruck getStatusData()
public StatusDataPublishedByAutochangerTruck createStatusDataPublishedByAutoChangerTruck()
public void publishData()
publishData in interface MovedByEPOSControllerCopyright © 2016 LSST. All rights reserved.