public class MCM
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.UsesSubsystem
| Modifier and Type | Class and Description |
|---|---|
static class |
MCM.MCMCommand |
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
log |
protected MCMUtilities |
mu |
protected Random |
random |
| Constructor and Description |
|---|
MCM() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCommandValidity(MCM.MCMCommand cmd) |
<T extends Enum<T>> |
checkState(Minion sys,
T... state) |
<T extends Enum<T>> |
checkState(Minion sys,
T state) |
void |
clear(int n) |
void |
configureCamera(String configId) |
void |
discardRows(int n) |
protected void |
doInitImages(long delay) |
void |
endImage() |
Future<?> |
execute(Runnable r) |
<T extends Enum<T>> |
expectingState(Minion m,
T state) |
protected void |
initAllowedTransitions() |
void |
initGuiders() |
void |
initImages(long delay) |
void |
initModule() |
<T extends Enum<T>> |
isInState(Minion sys,
T state) |
void |
publishEvent(MCMEvent e) |
ScheduledFuture<?> |
schedule(Runnable r,
Duration delay) |
Object |
send(Minion dst,
String command,
Object... parms) |
Future<Object> |
sendAsync(Minion dst,
String command,
Object... parms) |
Object |
sendLongCommand(Minion dst,
long duration,
String command,
Object... parms) |
void |
setAbortingOnAlarmMinions(Minion... m) |
void |
setFilter(String filterName) |
void |
setFilterAsync(String filterName) |
void |
setFilterSync(String filterName) |
protected void |
setState(MCMState s) |
void |
startImage(String seqName,
boolean openShutter,
boolean scienceActive,
boolean WFSActive,
boolean guidingActive,
int timeoutMillis) |
void |
startImageTimeout() |
void |
takeImages(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName) |
void |
takeImagesAsync(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName) |
void |
takeImagesSync(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName) |
void |
tick() |
<T extends Enum<T>> |
waitForState(Minion sys,
T state,
long timeout) |
void |
waitMillis(long millis) |
Future<org.lsst.ccs.bus.messages.StatusMessage> |
watchForState(Minion sys,
Enum<?> state) |
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected MCMUtilities mu
protected Random random
protected static final org.lsst.ccs.utilities.logging.Logger log
public void initModule()
initModule in class org.lsst.ccs.framework.Moduleprotected void setState(MCMState s)
protected void initAllowedTransitions()
protected void checkCommandValidity(MCM.MCMCommand cmd)
@Command public void initImages(long delay)
protected void doInitImages(long delay)
@Command public void configureCamera(String configId)
@Command public void setFilter(String filterName)
@Command public void setFilterAsync(String filterName)
@Command public void setFilterSync(String filterName)
@Command
public void takeImages(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName)
@Command(level=1)
public void takeImagesSync(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName)
@Command(level=1)
public void takeImagesAsync(int n,
int exposureMillis,
boolean openShutter,
boolean scienceActive,
boolean guidingActive,
boolean WFSActive,
String seqName)
@Command public void initGuiders()
@Command public void clear(int n)
@Command public void startImage(String seqName, boolean openShutter, boolean scienceActive, boolean WFSActive, boolean guidingActive, int timeoutMillis)
public void startImageTimeout()
@Command public void endImage()
@Command public void discardRows(int n)
public void tick()
tick in class org.lsst.ccs.framework.Modulepublic void publishEvent(MCMEvent e)
public Object send(Minion dst, String command, Object... parms) throws Exception
Exceptionpublic Object sendLongCommand(Minion dst, long duration, String command, Object... parms) throws Exception
Exceptionpublic Future<org.lsst.ccs.bus.messages.StatusMessage> watchForState(Minion sys, Enum<?> state)
public void waitMillis(long millis)
@SafeVarargs public final <T extends Enum<T>> void checkState(Minion sys, T... state)
public void setAbortingOnAlarmMinions(Minion... m)
public ScheduledFuture<?> schedule(Runnable r, Duration delay)
public <T extends Enum<T>> MCMUtilities.ExpectedStateCombination expectingState(Minion m, T state)
Copyright © 2016 LSST. All rights reserved.