
public class AutochangerTruck extends Object implements MovedByEPOSController, org.lsst.ccs.framework.HasLifecycle, AlertRaiser
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_MONITOR_TASK_NAME |
alertSeparater| 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 |
build() |
StatusDataPublishedByAutochangerTruck |
createStatusDataPublishedByAutoChangerTruck()
Creates an object to be published on the status bus.
|
org.lsst.ccs.services.alert.AlertService |
getAlertService()
return alertService
|
String |
getControllerName()
Return the name of the controller.
|
String |
getName() |
int |
getPosition()
Return truck position enregistred in field position.
|
org.lsst.ccs.Subsystem |
getSubsystem() |
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 |
publishData()
publishes data on the STATUS bus
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmonitorCurrentinit, postBuild, postInit, postShutdown, postStart, shutdown, startclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic static final String CURRENT_MONITOR_TASK_NAME
public AutochangerTruck(EPOSControllerWithBrake controller, ComplementarySensors handoffPositionSensors, ComplementarySensors onlinePositionSensors, ComplementarySensors standbyPositionSensors)
controller - handoffPositionSensors - onlinePositionSensors - standbyPositionSensors - public String getName()
getName in interface AlertRaiserpublic org.lsst.ccs.Subsystem getSubsystem()
getSubsystem in interface AlertRaiserpublic org.lsst.ccs.services.alert.AlertService getAlertService()
AlertRaisergetAlertService in interface AlertRaiserpublic 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 MovedByEPOSControllerCopyright © 2018 LSST. All rights reserved.