
public class AutochangerTruckModule extends MobileItemModule implements MovedByEPOSController
| Modifier and Type | Field and Description |
|---|---|
protected Lock |
lock |
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, scheduler| Constructor and Description |
|---|
AutochangerTruckModule(EPOSControllerWithBrake controller,
ComplementarySensors handoffPositionSensors,
ComplementarySensors onlinePositionSensors,
ComplementarySensors standbyPositionSensors)
Builds a AutochangerTruckModule with 3 couple of complementary sensors
to detect position of the truck at ONLINE, HANDOFF and STANDBY position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay)
aborts action actually running.
|
StatusDataPublishedByAutochangerTruck |
createStatusDataPublishedByAutoChangerTruck()
Creates an object to be published on the status bus.
|
String |
getControllerName()
Return the name of the controller.
|
int |
getPosition()
Return truck position enregistred in field position.
|
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isAtHandoff() |
boolean |
isAtOnline() |
boolean |
isAtStandby() |
boolean |
isCANDevicesReady() |
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 |
moveToAbsoluteTargetPosition(int targetPosition) |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate v)
Updates field controllerInFault when the controller notifies its observers and sends new values.
|
void |
publishData()
publishes data on the STATUS bus
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
setControllerInFault(boolean controllerInFault) |
void |
startAction(FcsEnumerations.MobileItemAction action)
starts the action given as argument.
|
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.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted()
reads sensors or any device and updates state from sensors
it can be also reading a position or a current on a motor controller.
|
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEmergencyMessage, processFaultReset, updateControllerInFaultgetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarningchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkprotected final Lock lock
protected volatile boolean updatingState
public AutochangerTruckModule(EPOSControllerWithBrake controller, ComplementarySensors handoffPositionSensors, ComplementarySensors onlinePositionSensors, ComplementarySensors standbyPositionSensors)
controller - handoffPositionSensors - onlinePositionSensors - standbyPositionSensors - public void initModule()
initModule in class MobileItemModule@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()
@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 MovedByEPOSController@Command(type=QUERY, level=1, description="Update truck position in reading controller.") public void updatePosition()
protected void updateStateWithSensors(String[] readHexaValues)
readHexaValues - FcsHardwareExceptionpublic void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulesource - v - public StatusDataPublishedByAutochangerTruck createStatusDataPublishedByAutoChangerTruck()
public void publishData()
MovedByEPOSControllerpublishData in interface MovedByEPOSControllerpublishData in class MobileItemModulepublic void moveToAbsoluteTargetPosition(int targetPosition)
public boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
MobileItemModuleupdateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModulepublic void startAction(FcsEnumerations.MobileItemAction action)
MobileItemModulestartAction in class MobileItemModulepublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
MobileItemModuleabortAction in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModuleCopyright © 2017 LSST. All rights reserved.