|
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.cells.AbstractCell
public abstract class AbstractCell
Default implementations for all cells.
Field Summary | |
---|---|
protected float |
newValue
The new output value. |
protected float |
value
The current value. |
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
AbstractCell()
Creates a new instance with currently no inputs. |
|
AbstractCell(Collection inputs)
Creates a new instance with the given collection of inputs. |
|
AbstractCell(int n)
Creates a new instance with currently no inputs and with the given initial capacity. |
|
AbstractCell(Object input)
Creates a new instance with the given input. |
Method Summary | |
---|---|
float |
output()
Returns the current output value of the 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, getInput, getInputs, integrateInputs, setInput, setInputs |
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 |
Field Detail |
---|
protected float value
protected float newValue
Constructor Detail |
---|
public AbstractCell()
public AbstractCell(int n)
n
- Number of initial capacity for inputs.public AbstractCell(Collection inputs)
inputs
- The collection of inputs.public AbstractCell(Object input)
input
- The input.Method Detail |
---|
public void update()
update
in interface Updateable
public float output()
output
in interface ServesOutput
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |