|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.base.XholonWithPorts
org.primordion.xholon.base.AbstractGrid
AbstractGrid is an abstract class that your detailed behavior class (ex: XhGameOfLife) should extend if it contains a grid superimposed on some portion of the tree.
IGrid| Field Summary | |
static int |
P_BEHAVIOR
|
static int |
P_NEXT
|
static int |
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.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 | |
AbstractGrid()
Constructor. |
|
| Method Summary | |
int |
configure(java.lang.String instructions,
int instructIx)
Configure something based on a configure instruction. |
int |
getNeighType()
Get the neighborhood type, as defined in IGrid. |
int |
getNumNeighbors()
Get the number of neighbors that a grid cell has. |
void |
initialize()
Initialize the tree node. |
void |
moveXholonsToGrid(IXholon xhParent,
boolean allowMultiple)
Move a set of xholons randomly into a grid structure. |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
void |
postReconfigure()
Post-reconfigure. |
void |
preReconfigure()
Pre-Reconfigure, such as at the start of a new GP generation. |
void |
reconfigure()
Reconfigure, such as at the start of a new GP generation. |
void |
setCaFuture()
Set reference to Future Self link, if this is a 1D CA grid. |
void |
setCaLeft()
Set reference to Left Neighbor link, if this is a 1D CA grid. |
void |
setCaRight()
Set reference to Right Neighbor link, if this is a 1D CA grid. |
void |
setEast()
Set reference to east link, if this is a grid. |
void |
setHex0()
Set reference to Hex0 (top) link, if this is a hexagonal grid. |
void |
setHex1()
Set reference to Hex1 link, if this is a hexagonal grid. |
void |
setHex2()
Set reference to Hex2 link, if this is a hexagonal grid. |
void |
setHex3()
Set reference to Hex3 link, if this is a hexagonal grid. |
void |
setHex4()
Set reference to Hex4 link, if this is a hexagonal grid. |
void |
setHex5()
Set reference to Hex5 link, if this is a hexagonal grid. |
void |
setNorth()
Set reference to north link, if this is a grid. |
void |
setNorthEast()
Set reference to north east link, if this is a grid. |
void |
setNorthWest()
Set reference to north west link, if this is a grid. |
void |
setSiblingsComplete()
Set references to all siblings, if this is a complete graph. |
void |
setSiblingsCompleteSelf()
Set references to all siblings and to self, if this is a complete graph including self. |
void |
setSiblingsCycle()
Set references to two adjacent siblings, if this is a cycle. |
void |
setSiblingsWheel()
Set references to two adjacent siblings, and to parent, if this is a wheel. |
void |
setSouth()
Set reference to south link, if this is a grid. |
void |
setSouthEast()
Set reference to south east link, if this is a grid. |
void |
setSouthWest()
Set reference to south west link, if this is a grid. |
void |
setWest()
Set reference to west link, if this is a grid. |
| Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, setMaxPorts, setPorts, terminate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int P_BEHAVIOR
public static final int P_NEXT
public static final int P_PREVIOUS
| Constructor Detail |
public AbstractGrid()
| Method Detail |
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic int getNeighType()
IGrid
getNeighType in interface IGridpublic int getNumNeighbors()
IGrid
getNumNeighbors in interface IGrid
public int configure(java.lang.String instructions,
int instructIx)
IXholon
configure in interface IXholonconfigure in class Xholonpublic void postConfigure()
IXholon
postConfigure in interface IXholonpostConfigure in class XholonWithPortspublic void preReconfigure()
IXholon
preReconfigure in interface IXholonpreReconfigure in class Xholonpublic void reconfigure()
IXholon
reconfigure in interface IXholonreconfigure in class Xholonpublic void postReconfigure()
IXholon
postReconfigure in interface IXholonpostReconfigure in class Xholonpublic void setNorth()
IGrid
setNorth in interface IGridpublic void setSouth()
IGrid
setSouth in interface IGridpublic void setWest()
IGrid
setWest in interface IGridpublic void setEast()
IGrid
setEast in interface IGridpublic void setNorthEast()
IGrid
setNorthEast in interface IGridpublic void setSouthEast()
IGrid
setSouthEast in interface IGridpublic void setSouthWest()
IGrid
setSouthWest in interface IGridpublic void setNorthWest()
IGrid
setNorthWest in interface IGridpublic void setHex0()
IGrid
setHex0 in interface IGridpublic void setHex1()
IGrid
setHex1 in interface IGridpublic void setHex2()
IGrid
setHex2 in interface IGridpublic void setHex3()
IGrid
setHex3 in interface IGridpublic void setHex4()
IGrid
setHex4 in interface IGridpublic void setHex5()
IGrid
setHex5 in interface IGridpublic void setCaLeft()
IGrid
setCaLeft in interface IGridpublic void setCaRight()
IGrid
setCaRight in interface IGridpublic void setCaFuture()
IGrid
setCaFuture in interface IGridpublic void setSiblingsComplete()
IGrid
setSiblingsComplete in interface IGridpublic void setSiblingsCompleteSelf()
IGrid
setSiblingsCompleteSelf in interface IGridpublic void setSiblingsCycle()
IGrid
setSiblingsCycle in interface IGridpublic void setSiblingsWheel()
IGrid
setSiblingsWheel in interface IGrid
public void moveXholonsToGrid(IXholon xhParent,
boolean allowMultiple)
IGrid
moveXholonsToGrid in interface IGridxhParent - The parent of the xholons that should be moved.allowMultiple - Whether multiple xholons are allowed in the same grid cell.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||