IN
- public class TimerNode<IN> extends Node<IN,IN>
TimerNode
TODOgraph, inputNodes
Constructor and Description |
---|
TimerNode(IN input,
long delay) |
TimerNode(IN input,
long delay,
long interval,
int repeatCount) |
TimerNode(long delay) |
TimerNode(long delay,
long interval,
int repeatCount) |
Modifier and Type | Method and Description |
---|---|
void |
emitOutput()
Invoked to emit available output value(s) from this
OutputNode . |
protected IN |
processInput(OutputNode<IN> source,
IN input)
Invoked by
InputNode.onInput(OutputNode, Object) when the given input Object
has been received from the OutputNode that emitted it. |
protected void |
remove(com.robopupu.api.graph.nodes.TimerNode.TimerHandle handle) |
void |
setInput(IN input) |
void |
start(IN input)
Stars a new timer.
|
protected void |
timeout(com.robopupu.api.graph.nodes.TimerNode.TimerHandle handle,
IN input) |
action, action, addInputNode, attach, begin, begin, beginTimer, beginTimer, buffer, completed, concat, concatStrings, count, createErrorMessage, detach, dispatchError, dispatchReset, distinct, doOnCompleted, doOnError, doOnInput, doOnReset, emitOutput, filter, first, first, getGraph, hasInputNodes, isErrorReceived, last, last, map, merge, nth, observer, observer, onAttached, onCompleted, onDetached, onError, onInput, onReset, removeInputNode, repeat, reverse, setErrorReceived, setGraph, skip, skipWhile, start, string, sum, take, timer, timer, toBoolean, toByte, toChar, toDouble, toFloat, toInt, toLong, toMain, toShort, toWorker, whenClicked, whenTextChanged
public TimerNode(long delay)
public TimerNode(IN input, long delay)
public TimerNode(long delay, long interval, int repeatCount)
public TimerNode(IN input, long delay, long interval, int repeatCount)
public void setInput(IN input)
protected IN processInput(OutputNode<IN> source, IN input)
Node
InputNode.onInput(OutputNode, Object)
when the given input Object
has been received from the OutputNode
that emitted it.processInput
in class Node<IN,IN>
source
- An OutputNode
that emitted the input.input
- The input Object
.public void emitOutput()
OutputNode
OutputNode
.emitOutput
in interface OutputNode<IN>
emitOutput
in class Node<IN,IN>
public void start(IN input)
protected void timeout(com.robopupu.api.graph.nodes.TimerNode.TimerHandle handle, IN input)
protected void remove(com.robopupu.api.graph.nodes.TimerNode.TimerHandle handle)