public class MainModule extends Object implements AlertRaiser, org.lsst.ccs.framework.SignalHandler, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridge |
protected AtomicBoolean |
haltRequired |
protected String |
name |
protected AtomicBoolean |
stopRequired |
protected org.lsst.ccs.Subsystem |
subs |
alertSeparater| Constructor and Description |
|---|
MainModule(BridgeToHardware bridge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allDevicesBooted()
This methods updates the boolean hardwareReady from the hardware bridge.
|
org.lsst.ccs.AlertService |
getAlertService()
return alertService
|
List<String> |
getFilterNames()
Return a list of filter names that the subsystem manages.
|
String |
getName() |
org.lsst.ccs.Subsystem |
getSubsystem() |
boolean |
isHaltRequired() |
boolean |
isStopRequired() |
List<String> |
listHardwareNames()
Returns list of hardware names.
|
List<String> |
listLoaderHardwareNames()
For Whole FCS GUI.
|
void |
publishData()
for GUI
|
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
updateFCSStateToReady()
Updates the FCS state and FCS readyness state and publishes on the status bus.
|
void |
updateStateWithSensors()
Update state in reading sensors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarning@LookupName protected String name
@LookupField(strategy=TOP) protected org.lsst.ccs.Subsystem subs
protected BridgeToHardware bridge
protected AtomicBoolean haltRequired
protected AtomicBoolean stopRequired
public MainModule(BridgeToHardware bridge)
public String getName()
getName in interface AlertRaiserpublic org.lsst.ccs.Subsystem getSubsystem()
getSubsystem in interface AlertRaiserpublic org.lsst.ccs.AlertService getAlertService()
AlertRaisergetAlertService in interface AlertRaiserpublic boolean isHaltRequired()
public boolean isStopRequired()
@Command(type=QUERY,
level=1,
description="Return true if all hardware is booted with the correct serial number.")
public boolean allDevicesBooted()
@Command(type=QUERY,
level=1,
description="Returns the list of CANopen hardware managed by this subsystem.")
public List<String> listHardwareNames()
@Command(type=QUERY,
level=1,
description="Return the list of LOADER CANopen hardware managed by this subsystem.")
public List<String> listLoaderHardwareNames()
@Command(type=QUERY,
description="Return the list of names of filters that this subsystem manages.",
level=1,
alias="listFilterNames")
public List<String> getFilterNames()
@Command(type=QUERY,
level=0,
description="Update state in reading sensors.")
public void updateStateWithSensors()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Update FCS state and FCS readiness state and publishes on the status bus.")
public void updateFCSStateToReady()
public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal signal)
signal in interface org.lsst.ccs.framework.SignalHandler@Command(type=QUERY,
level=0,
description="Publish Data to populate GUI.")
public void publishData()
Copyright © 2018 LSST. All rights reserved.