|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.AbstractMonitor
public abstract class AbstractMonitor
Default implementation for a monitor.
Field Summary |
---|
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
AbstractMonitor()
Creates a new instance with currently no inputs. |
|
AbstractMonitor(Collection inputs)
Creates a new instance with the given collection of inputs. |
|
AbstractMonitor(int n)
Creates a new instance with currently no inputs and with the given initial capacity. |
|
AbstractMonitor(ServesOutput input)
Creates a new instance with the given input. |
Method Summary | |
---|---|
ServesOutput |
getInput()
Returns the first (if any) input. |
Collection |
getInputs()
Returns a collection of all inputs to this simulation component. |
void |
setInput(ServesOutput input)
Sets the first (and only) input. |
void |
setInputs(Collection inputs)
Sets the collection of all inputs to this simulation component. |
void |
update()
Updates the actual state to the newly computed - aka double-buffering. |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, integrateInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ch.unizh.ini.friend.simulation.Updateable |
---|
compute |
Constructor Detail |
---|
public AbstractMonitor()
public AbstractMonitor(int n)
n
- Number of initial capacity for inputs.public AbstractMonitor(Collection inputs)
inputs
- The collection of inputs.public AbstractMonitor(ServesOutput input)
input
- The input.Method Detail |
---|
public Collection getInputs()
getInputs
in interface AcceptsInput
getInputs
in class AbstractAcceptsInput
public void setInputs(Collection inputs)
setInputs
in interface AcceptsInput
setInputs
in class AbstractAcceptsInput
inputs
- The inputs.public ServesOutput getInput()
getInput
in interface AcceptsInput
getInput
in class AbstractAcceptsInput
public void setInput(ServesOutput input)
setInput
in interface AcceptsInput
setInput
in class AbstractAcceptsInput
input
- The input.public void update()
update
in interface Updateable
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |