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 |
protected org.lsst.ccs.services.DataProviderDictionaryService |
dataProviderDictionaryService |
protected String |
path |
alertSeparator| 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
|
EPOSController |
getController() |
int |
getPosition()
Return truck position enregistred in field position.
|
org.lsst.ccs.Subsystem |
getSubsystem() |
void |
init() |
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, waitgetControllerName, monitorCurrentpostBuild, postInit, postShutdown, postStart, shutdown, startclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNew@LookupField(strategy=TREE) protected org.lsst.ccs.services.DataProviderDictionaryService dataProviderDictionaryService
@LookupPath protected String path
public static final String CURRENT_MONITOR_TASK_NAME
public AutochangerTruck(EPOSControllerWithBrake controller, ComplementarySensors handoffPositionSensors, ComplementarySensors onlinePositionSensors, ComplementarySensors standbyPositionSensors)
controller - handoffPositionSensors - onlinePositionSensors - standbyPositionSensors - public EPOSController getController()
getController in interface MovedByEPOSControllerpublic 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.HasLifecyclepublic void init()
init 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="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 © 2022 LSST. All rights reserved.