org.primordion.xholon.tutorials.StupidModel
Class BugStupidModel14
java.lang.Object
org.primordion.xholon.base.Xholon
org.primordion.xholon.base.XholonWithPorts
org.primordion.xholon.tutorials.StupidModel.XhStupidModel14
org.primordion.xholon.tutorials.StupidModel.BugStupidModel14
- All Implemented Interfaces:
- CeStupidModel14, java.lang.Comparable, IXholon
- public class BugStupidModel14
- extends XhStupidModel14
- implements java.lang.Comparable
StupidModel14 application - Xholon Java
Xholon 0.5 http://www.primordion.com/Xholon
Method Summary |
void |
act()
Do some action during this time step. |
int |
compareTo(java.lang.Object o)
|
double |
getBugSize()
Get the current bug size. |
double |
getVal()
Get the value of a "double" maintained by this xholon instance. |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
void |
setBugSize(double bugSize)
Set the size of this bug. |
java.lang.String |
toString()
|
Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getMaxPorts, getPort, initialize, isActiveObject, isBound, isContainer, isPassiveObject, setMaxPorts, setPorts, terminate |
Methods inherited from class org.primordion.xholon.base.Xholon |
appendChild, appendChild, appendChild, cleanup, configure, createStructure, decVal, decVal, depth, draw, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextId, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumSiblings, getParentNode, getPreviousSibling, getRootNode, getSiblings, getSizeMessageQ, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getXhc, getXhcId, getXhcName, getXhType, handleNodeSelection, hasAncestor, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, height, incVal, incVal, initStatics, inOrderPrint, insertAfter, insertBefore, insertFirstChild, isExternal, isInternal, isLeaf, isRootNode, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, reconfigure, remove, removeChild, resetNextId, sendMessage, sendMessage, sendMessage, setAttributeVal, setFactory, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setSizeMessageQ, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, treeSize, writeXml |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
maxConsumptionRate
public static double maxConsumptionRate
survivalProbability
public static double survivalProbability
initialBugSizeMean
public static double initialBugSizeMean
initialBugSizeSD
public static double initialBugSizeSD
P_Statistics
public static final int P_Statistics
- See Also:
- Constant Field Values
P_Scheduler
public static final int P_Scheduler
- See Also:
- Constant Field Values
SIG_SCHEDULE_ME
public static final int SIG_SCHEDULE_ME
- See Also:
- Constant Field Values
BugStupidModel14
public BugStupidModel14()
getBugSize
public double getBugSize()
- Get the current bug size.
- Returns:
- The current bug size.
setBugSize
public void setBugSize(double bugSize)
- Set the size of this bug.
- Parameters:
bugSize
- The new size.
getVal
public double getVal()
- Description copied from interface:
IXholon
- Get the value of a "double" maintained by this xholon instance.
If a class that implements this interface does not maintain such a value, it should return 0.0
This method can be used in place of getVal_double()
- Specified by:
getVal
in interface IXholon
- Overrides:
getVal
in class Xholon
postConfigure
public void postConfigure()
- Description copied from interface:
IXholon
- Perform some action, typically once at start up; MAY be overridden.
Recursive; application should call this only for root.
- Specified by:
postConfigure
in interface IXholon
- Overrides:
postConfigure
in class XhStupidModel14
act
public void act()
- Description copied from interface:
IXholon
- Do some action during this time step.
Typically all nodes in the tree will do their pre-actions (optional), then all will do their actions,
and then all will do their post-actions (optional).
- Specified by:
act
in interface IXholon
- Overrides:
act
in class XhStupidModel14
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class XhStupidModel14