|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.Model
Field Summary | |
int |
arrayHeight
|
int |
arrayWidth
|
Cell[] |
cells
|
static int |
END_OF_RUN
|
Network |
net
|
static int |
NEW_RUN
|
int |
numCells
|
java.io.PrintWriter |
out
|
static int |
UPDATE_CELLS
|
Constructor Summary | |
Model()
Note - after making a new Model, you should immediately call the load() function. |
Method Summary | |
void |
cleanUp()
|
float |
getInitialValue(int node)
Returns the default initial value for this node as given by its initializers object. |
ParameterSet |
getModelParameterSet()
|
ModelState |
getModelState()
Returns the ModelState Object associated with this model |
java.lang.String |
getName()
|
Network |
getNetwork()
|
boolean |
isGood()
|
void |
load(BetterTokenizer tokenizer)
|
void |
saveNetworkFile(java.io.PrintWriter pw)
|
void |
setInitialValue(int node,
float value)
Calls setDefaultInitialValue with given parameters in its initializers object. |
void |
setModelState(ModelState state)
Sets a ModelState object for this Model. |
void |
setParameterSet(ParameterSet parameters)
|
void |
setupOutput()
|
void |
updateAll()
Indicates that the entire ModelState has been updated |
void |
updateNode(int cellIndex,
int nodeIndex,
float value)
Updates only the indicated node. |
void |
updateOutput(int type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int END_OF_RUN
public static final int NEW_RUN
public static final int UPDATE_CELLS
public int arrayWidth
public int arrayHeight
public int numCells
public Cell[] cells
public Network net
public java.io.PrintWriter out
Constructor Detail |
public Model()
Method Detail |
public void load(BetterTokenizer tokenizer) throws ModelLoadingException, java.lang.Exception
ModelLoadingException
java.lang.Exception
public Network getNetwork()
public java.lang.String getName()
public ParameterSet getModelParameterSet()
public void setParameterSet(ParameterSet parameters)
public void setupOutput()
public void cleanUp()
public ModelState getModelState()
public float getInitialValue(int node)
public void setInitialValue(int node, float value)
public void saveNetworkFile(java.io.PrintWriter pw)
public boolean isGood()
public void setModelState(ModelState state)
public void updateOutput(int type)
public void updateAll()
updateAll
in interface ModelStateChangeListener
public void updateNode(int cellIndex, int nodeIndex, float value)
updateNode
in interface ModelStateChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |