|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystem.common.BinaryOpModule
public abstract class BinaryOpModule
A base class for a binary operator. The two input values are updated through observers The class computes periodically the output value using the current input values
| Nested Class Summary |
|---|
| 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 | |
|---|---|
protected double |
current1
|
protected double |
current2
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
BinaryOpModule()
|
|
| Method Summary | |
|---|---|
String |
getInput1()
|
String |
getInput2()
|
String |
getOutput()
|
abstract double |
op()
Computes the output from the current values of the input parameters. |
void |
processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate update)
|
void |
setInput1(String input1)
The name of input parameter 1, will be checked when update is called. |
void |
setInput2(String input2)
The name of input parameter 2, will be checked when update is called. |
void |
setOutput(String output)
The name used to broadcast the result |
void |
tick()
|
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
alias, change, checkHardware, dropConfigurationContext, getAvailableCommands, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, 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, start, startTicking, 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 |
| Field Detail |
|---|
protected double current1
protected double current2
| Constructor Detail |
|---|
public BinaryOpModule()
| Method Detail |
|---|
public String getInput1()
public void setInput1(String input1)
input1 - public String getInput2()
public void setInput2(String input2)
input2 - public String getOutput()
public void setOutput(String output)
output - public abstract double op()
public void processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate update)
processUpdate in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||