
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(String name,
int tickMillis)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getSampleArrayData() |
DemoData |
getSampleData() |
void |
initModule()
Initializes the subsystem.
|
void |
postStart() |
void |
raiseCustomAlert(String alertId,
org.lsst.ccs.bus.states.AlertState severity) |
void |
runTracerTest(boolean enable) |
String |
testCustomTimeout(int before,
int after,
int timeout) |
String |
testTimeout(int sleep) |
void |
throwAnException() |
void |
updateLimits(String low,
String high) |
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, 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, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected PeriodicTask dataPublisher
protected PeriodicTask plotPublisher
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
postStart in interface org.lsst.ccs.framework.ConfigurablepostStart in class org.lsst.ccs.framework.Moduleorg.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)
@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)
Copyright © 2016 LSST. All rights reserved.