public class AutochangerTruck extends MobileItem implements MovedByEPOSController, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_MONITOR_TASK_NAME |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, name, readSensorsHandle, s, scheduleralertSeparater| Constructor and Description |
|---|
AutochangerTruck(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.
|
void |
build() |
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.
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isAtHandoff() |
boolean |
isAtOnline() |
boolean |
isAtStandby() |
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) |
boolean |
myDevicesReady()
Return True if all CAN open devices useful for this MobileItemMobile are ready for an action.
|
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData()
publishes data on the STATUS bus
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
startAction(FcsEnumerations.MobileItemAction action)
starts the action given as argument.
|
void |
updateCurrent()
read actual current on controller, update field current and publish it on STATUS bus.
|
void |
updatePosition()
Updates the field position of the truck in reading the CPU of the
controller.
|
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, cancelReadingSensors, checkReadyForAction, checkStopped, executeAction, getAlertService, getHaltRequired, getName, getSubsystem, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopActionNow, waitForEndOfActionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmonitorCurrentinit, postBuild, postInit, postStart, postStop, shutdownNow, start, stopcheckHardware, checkStartedclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningpublic static final String CURRENT_MONITOR_TASK_NAME
public AutochangerTruck(EPOSControllerWithBrake controller, ComplementarySensors handoffPositionSensors, ComplementarySensors onlinePositionSensors, ComplementarySensors standbyPositionSensors)
controller - handoffPositionSensors - onlinePositionSensors - standbyPositionSensors - public void build()
build in interface org.lsst.ccs.framework.HasLifecycle@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="Update truck position in reading controller.")
public void updatePosition()
public void updateCurrent()
updateCurrent in interface MovedByEPOSControllerpublic StatusDataPublishedByAutochangerTruck createStatusDataPublishedByAutoChangerTruck()
public void publishData()
MovedByEPOSControllerpublishData in interface MovedByEPOSControllerpublishData in class MobileItempublic void moveToAbsoluteTargetPosition(int targetPosition)
public boolean myDevicesReady()
MobileItemmyDevicesReady in class MobileItempublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItempublic void updateStateWithSensorsToCheckIfActionIsCompleted()
MobileItemupdateStateWithSensorsToCheckIfActionIsCompleted in class MobileItempublic void startAction(FcsEnumerations.MobileItemAction action)
MobileItemstartAction in class MobileItempublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
MobileItemabortAction in class MobileItempublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItempublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemCopyright © 2018 LSST. All rights reserved.