|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.gauge.GaugedVariables
public class GaugedVariables
GaugedVariables contains information about what data this gauge represents.
| Constructor Summary | |
|---|---|
GaugedVariables()
Default constructor for creating gauged variables. |
|
GaugedVariables(Gauge gauge)
Creates gauged Variables. |
|
| Method Summary | |
|---|---|
void |
addVariable(GaugeSource toAdd)
Add a new gauged variable. |
void |
changeVariable(GaugeSource oldVar,
GaugeSource newVar)
Update a gauged variable. |
protected void |
clear()
Clears all variables for new gauge. |
String |
getNetworkName()
|
int |
getNumVariables()
Returns the number of gauged variables. |
Gauge |
getParent()
|
String |
getPersistentVariables()
|
double[] |
getState()
Converts gauged variable states into a double array to be sent to the hisee gauge. |
void |
initCastor(NetworkFrame net)
Used in persisting. |
void |
prepareToSave()
Called before saving to set persistent variables. |
void |
removeVariable(GaugeSource toRemove)
Remove a gauged variable. |
void |
setNetworkName(String networkName)
|
void |
setParent(Gauge parent)
Sets which gauge variables are attached to. |
void |
setPersistentVariables(String persistentGaugedVars)
|
protected void |
setVariables(Collection gaugedVars)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GaugedVariables()
public GaugedVariables(Gauge gauge)
gauge - to be used for variables| Method Detail |
|---|
public void initCastor(NetworkFrame net)
net - the network frame to which this is connectedprotected void clear()
public void addVariable(GaugeSource toAdd)
toAdd - variable to add.
public void changeVariable(GaugeSource oldVar,
GaugeSource newVar)
oldVar - out with the oldnewVar - in with the newpublic void removeVariable(GaugeSource toRemove)
toRemove - the variable to remove.public int getNumVariables()
public void prepareToSave()
public double[] getState()
public String getPersistentVariables()
public void setPersistentVariables(String persistentGaugedVars)
persistentGaugedVars - The persistentGaugedVars to set.protected void setVariables(Collection gaugedVars)
gaugedVars - The gaugedVars to set.public String getNetworkName()
public void setNetworkName(String networkName)
networkName - The networkName to set.public Gauge getParent()
public void setParent(Gauge parent)
parent - gauge for gauge variablepublic String toString()
toString in class ObjectObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||