org.lsst.ccs.subsystem.common
Class Sequencer

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystem.common.Sequencer
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable

public class Sequencer
extends org.lsst.ccs.framework.Module

A generic sequencer module. This sequencer module can call methods, set values, sleep for some delay, wait for some state change or update value broadcast, loop... It can accept commands and act as a facade of a whole ModularSubsystem. TODO this should use Groovy DSL

Author:
aubourg
See Also:
Serialized Form

Nested Class Summary
static class Sequencer.CallMethod
           
static class Sequencer.Goto
           
static class Sequencer.Label
           
static class Sequencer.SleepMillis
           
static class Sequencer.Step
          A Step in the programmation of this module
static class Sequencer.Stop
           
static class Sequencer.WaitForProperty
           
static class Sequencer.WaitForUpdate
           
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable
org.lsst.ccs.framework.Configurable.Environment
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
Sequencer()
           
 
Method Summary
 void execute(String label)
           
 int findLabel(String label)
           
 ArrayList<String> getSequence()
           
 void initModule()
           
protected  void parseSequence()
           
 void setSequence(ArrayList<String> sequence)
           
 void start()
           
 
Methods inherited from class org.lsst.ccs.framework.Module
alias, change, checkHardware, dropConfigurationContext, getAvailableCommands, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, startTicking, tick, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequencer

public Sequencer()
Method Detail

getSequence

public ArrayList<String> getSequence()

setSequence

public void setSequence(ArrayList<String> sequence)

parseSequence

protected void parseSequence()

initModule

public void initModule()
Overrides:
initModule in class org.lsst.ccs.framework.Module

start

public void start()
Overrides:
start in class org.lsst.ccs.framework.Module

findLabel

public int findLabel(String label)

execute

public void execute(String label)


Copyright © 2013 LSST. All Rights Reserved.