
public class DemoSubsystem
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected PeriodicTask |
dataPublisher
Scheduler task that publishes heartbeat status messages.
|
protected PeriodicTask |
plotPublisher |
| Constructor and Description |
|---|
DemoSubsystem() |
DemoSubsystem(String name,
int tickMillis)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getSampleArrayData() |
DemoData |
getSampleData() |
void |
initModule()
Initializes the subsystem.
|
void |
postStart() |
void |
publishPlot(String key,
String path,
String title) |
void |
raiseCustomAlert(String alertId,
org.lsst.ccs.bus.states.AlertState severity,
String cause) |
void |
runTracerTest(boolean enable) |
String |
testAck(boolean accept,
int delayBeforeAck,
int delayAfterAck,
int timeout) |
String |
testTimeout(int sleep) |
void |
throwAnException() |
void |
updateLimits(String low,
String high) |
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected PeriodicTask dataPublisher
protected PeriodicTask plotPublisher
public DemoSubsystem()
public DemoSubsystem(String name, int tickMillis)
name - tickMillis - public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void postStart()
throws org.lsst.ccs.HardwareException
org.lsst.ccs.HardwareException@Command(type=ACTION, description="update limits") public void updateLimits(String low, String high)
@Command(type=QUERY, description="raise custom alert") public void raiseCustomAlert(String alertId, org.lsst.ccs.bus.states.AlertState severity, String cause)
@Command(type=QUERY, description="Get Subsystem Data Sample") public DemoData getSampleData()
@Command(type=QUERY, description="Get Subsystem Array Sample") public Object[] getSampleArrayData()
@Command(type=QUERY, description="Throw an Exception") public void throwAnException()
@Command(type=ACTION, description="Enable/Disable Publishing Tracer Test Messages") public void runTracerTest(boolean enable)
@Command(type=QUERY, description="Time out") public String testTimeout(int sleep)
@Command(type=QUERY, description="Test sending ACK/NACK. Delays are in seconds.", autoAck=false) public String testAck(boolean accept, int delayBeforeAck, int delayAfterAck, int timeout)
Copyright © 2016 LSST. All rights reserved.