org.lsst.ccs.subsystem.common
Class UnaryOpModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystem.common.UnaryOpModule
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable
Direct Known Subclasses:
Averager, FeedbackLoop, Filter, PlottingModule, Scaler, TimeDerivative, UpdateValuePublisher

public abstract class UnaryOpModule
extends org.lsst.ccs.framework.Module

See Also:
Serialized Form

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
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
UnaryOpModule()
           
 
Method Summary
 String getAttRegex()
           
 String getPrefix()
           
 String getSuffix()
           
abstract  Object processInput(String input, String output, Object val, long timeStamp)
           
 void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate update)
           
 void setAttRegex(String attRegex)
          regex to select which attributes of the observed modules will be processed.
 void setPrefix(String prefix)
          Prefix that will be added, if defined, to output name
 void setSuffix(String suffix)
          Suffix that will be added, if defined, to output name
 
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, 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

UnaryOpModule

public UnaryOpModule()
Method Detail

getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)
Prefix that will be added, if defined, to output name


getSuffix

public String getSuffix()

setSuffix

public void setSuffix(String suffix)
Suffix that will be added, if defined, to output name


setAttRegex

public void setAttRegex(String attRegex)
regex to select which attributes of the observed modules will be processed. output property will have the prefix added if defined if the regex has a capturing group it will be used to build the output property name instead of the input property name


getAttRegex

public String getAttRegex()

processInput

public abstract Object processInput(String input,
                                    String output,
                                    Object val,
                                    long timeStamp)

processUpdate

public void processUpdate(Observable source,
                          org.lsst.ccs.framework.Module.ValueUpdate update)
Overrides:
processUpdate in class org.lsst.ccs.framework.Module


Copyright © 2013 LSST. All Rights Reserved.