|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.base.Xholon org.primordion.xholon.base.XholonWithPorts org.primordion.xholon.base.AbstractGrid org.primordion.xholon.base.GridEntity org.primordion.xholon.tutorials.StupidModel.HabitatCellStupidModel15
StupidModel15 application - Xholon Java
Xholon 0.5 http://www.primordion.com/Xholon
Field Summary | |
double |
foodProductionRate
|
static java.lang.String |
stupidCellData
|
Fields inherited from class org.primordion.xholon.base.AbstractGrid |
P_BEHAVIOR, P_NEXT, P_PREVIOUS |
Fields inherited from class org.primordion.xholon.base.XholonWithPorts |
port |
Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
Fields inherited from interface org.primordion.xholon.tutorials.StupidModel.CeStupidModel15 |
AggregatorCE, BugCE, BugsCE, GridCE, GridCellCE, HabitatCellCE, RowCE, StatisticsCE, StupidModelCE, XholonClassCE |
Fields inherited from interface org.primordion.xholon.base.IGrid |
BOUNDARY_GRID, BOUNDARY_TORUS, NEIGHBORHOOD_1DCA, NEIGHBORHOOD_HEXAGONAL, NEIGHBORHOOD_MOORE, NEIGHBORHOOD_SIBLING, NEIGHBORHOOD_VON_NEUMANN, P_CAFUTURESELF, P_CALEFTNEIGHBOR, P_CARIGHTNEIGHBOR, P_EAST, P_HEX0, P_HEX1, P_HEX2, P_HEX3, P_HEX4, P_HEX5, P_NORTH, P_NORTHEAST, P_NORTHWEST, P_SOUTH, P_SOUTHEAST, P_SOUTHWEST, P_STAYHERE, P_WEST, REGULAR_COMPLETE, REGULAR_COMPLETE_SELF, REGULAR_CYCLE, REGULAR_WHEEL |
Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
Constructor Summary | |
HabitatCellStupidModel15()
|
Method Summary | |
void |
act()
Do some action during this time step. |
double |
getVal()
Get the value of a "double" maintained by this xholon instance. |
java.util.Vector |
inRadius(int radius)
Return a filtered list of all neighbors within the specified radius. |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
void |
setVal(double val)
Set the value of a "double" maintained by this xholon instance. |
java.lang.String |
toString()
|
Methods inherited from class org.primordion.xholon.base.GridEntity |
getMaxPorts, setPorts |
Methods inherited from class org.primordion.xholon.base.AbstractGrid |
configure, getNeighType, getNumNeighbors, initialize, moveXholonsToGrid, postReconfigure, preReconfigure, reconfigure, setCaFuture, setCaLeft, setCaRight, setEast, setHex0, setHex1, setHex2, setHex3, setHex4, setHex5, setNorth, setNorthEast, setNorthWest, setSiblingsComplete, setSiblingsCompleteSelf, setSiblingsCycle, setSiblingsWheel, setSouth, setSouthEast, setSouthWest, setWest |
Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getPort, isActiveObject, isBound, isContainer, isPassiveObject, setMaxPorts, terminate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.primordion.xholon.base.IGrid |
getNeighType, getNumNeighbors, moveXholonsToGrid, setCaFuture, setCaLeft, setCaRight, setEast, setHex0, setHex1, setHex2, setHex3, setHex4, setHex5, setNorth, setNorthEast, setNorthWest, setSiblingsComplete, setSiblingsCompleteSelf, setSiblingsCycle, setSiblingsWheel, setSouth, setSouthEast, setSouthWest, setWest |
Field Detail |
public double foodProductionRate
public static java.lang.String stupidCellData
Constructor Detail |
public HabitatCellStupidModel15()
Method Detail |
public java.util.Vector inRadius(int radius)
radius
- Distance from the current cell. The current cell is a radius of 0 from itself.
public void postConfigure()
IXholon
postConfigure
in interface IXholon
postConfigure
in class AbstractGrid
public void act()
IXholon
act
in interface IXholon
act
in class Xholon
public double getVal()
IXholon
getVal
in interface IXholon
getVal
in class Xholon
public void setVal(double val)
IXholon
setVal
in interface IXholon
setVal
in class Xholon
public java.lang.String toString()
toString
in class GridEntity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |