Interface RatOutput
-
- All Superinterfaces:
adams.core.AdditionalInformationHandler,adams.core.Destroyable,adams.core.option.OptionHandler,adams.core.Stoppable,adams.core.StoppableWithFeedback,adams.event.VariableChangeListener
- All Known Implementing Classes:
AbstractMetaRatOutput,AbstractRatOutput,BinaryFileWriter,Branch,CallableActor,ContainerValuePicker,DistributedEnQueue,DummyOutput,EnQueue,Exec,FileMover,OutputWithCallableTransformer,OutputWithExternalTransformer,Publish,QueueDistribute,RedisAction,RedisPublish,SendEmail,Serialize,SimpleContainerContent,Socket,Switch,TextWriter,WebserviceOutput,WebsocketOutput
public interface RatOutput extends adams.core.StoppableWithFeedback, adams.event.VariableChangeListener, adams.core.option.OptionHandler, adams.core.AdditionalInformationHandlerInterface for output transmitters for the RATS framework.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class[]accepts()Returns the type of data that gets accepted.booleancanInput()Whether input can be supplied at the moment.StringgetFullName()Returns the full name of the receiver.RatgetOwner()Returns the actor the transmitter belongs to.StringinitTransmission()Initializes the transmission.voidinput(Object obj)The data to transmit.booleanisStopped()Returns whether the transmitter has been stopped.voidsetOwner(Rat value)Sets the actor the transmitter belongs to.StringsetUp()Hook method for performing checks at setup time.voidstopExecution()Stops the execution.Stringtransmit()Performs the transmission.voidvariableChanged(adams.event.VariableChangeEvent e)Gets triggered when a variable changed (added, modified, removed).
-
-
-
Method Detail
-
getFullName
String getFullName()
Returns the full name of the receiver.- Returns:
- the name
-
setOwner
void setOwner(Rat value)
Sets the actor the transmitter belongs to.- Parameters:
value- the owner
-
getOwner
Rat getOwner()
Returns the actor the transmitter belongs to.- Returns:
- the owner
-
setUp
String setUp()
Hook method for performing checks at setup time.- Returns:
- null if successful, otherwise error message
-
accepts
Class[] accepts()
Returns the type of data that gets accepted.- Returns:
- the type of data
-
initTransmission
String initTransmission()
Initializes the transmission.- Returns:
- null if successfully initialized, otherwise error message
-
canInput
boolean canInput()
Whether input can be supplied at the moment.- Returns:
- true if input is accepted
-
input
void input(Object obj)
The data to transmit.- Parameters:
obj- the data
-
transmit
String transmit()
Performs the transmission.- Returns:
- null if successful, otherwise error message
-
stopExecution
void stopExecution()
Stops the execution.- Specified by:
stopExecutionin interfaceadams.core.Stoppable
-
isStopped
boolean isStopped()
Returns whether the transmitter has been stopped.- Specified by:
isStoppedin interfaceadams.core.StoppableWithFeedback- Returns:
- true if stopped
-
variableChanged
void variableChanged(adams.event.VariableChangeEvent e)
Gets triggered when a variable changed (added, modified, removed).- Specified by:
variableChangedin interfaceadams.event.VariableChangeListener- Parameters:
e- the event
-
-