|
|||||||||||
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
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 IXholon
initialize
in class XholonWithPorts
public int getNeighType()
IGrid
getNeighType
in interface IGrid
public int getNumNeighbors()
IGrid
getNumNeighbors
in interface IGrid
public int configure(java.lang.String instructions, int instructIx)
IXholon
configure
in interface IXholon
configure
in class Xholon
public void postConfigure()
IXholon
postConfigure
in interface IXholon
postConfigure
in class XholonWithPorts
public void preReconfigure()
IXholon
preReconfigure
in interface IXholon
preReconfigure
in class Xholon
public void reconfigure()
IXholon
reconfigure
in interface IXholon
reconfigure
in class Xholon
public void postReconfigure()
IXholon
postReconfigure
in interface IXholon
postReconfigure
in class Xholon
public void setNorth()
IGrid
setNorth
in interface IGrid
public void setSouth()
IGrid
setSouth
in interface IGrid
public void setWest()
IGrid
setWest
in interface IGrid
public void setEast()
IGrid
setEast
in interface IGrid
public void setNorthEast()
IGrid
setNorthEast
in interface IGrid
public void setSouthEast()
IGrid
setSouthEast
in interface IGrid
public void setSouthWest()
IGrid
setSouthWest
in interface IGrid
public void setNorthWest()
IGrid
setNorthWest
in interface IGrid
public void setHex0()
IGrid
setHex0
in interface IGrid
public void setHex1()
IGrid
setHex1
in interface IGrid
public void setHex2()
IGrid
setHex2
in interface IGrid
public void setHex3()
IGrid
setHex3
in interface IGrid
public void setHex4()
IGrid
setHex4
in interface IGrid
public void setHex5()
IGrid
setHex5
in interface IGrid
public void setCaLeft()
IGrid
setCaLeft
in interface IGrid
public void setCaRight()
IGrid
setCaRight
in interface IGrid
public void setCaFuture()
IGrid
setCaFuture
in interface IGrid
public void setSiblingsComplete()
IGrid
setSiblingsComplete
in interface IGrid
public void setSiblingsCompleteSelf()
IGrid
setSiblingsCompleteSelf
in interface IGrid
public void setSiblingsCycle()
IGrid
setSiblingsCycle
in interface IGrid
public void setSiblingsWheel()
IGrid
setSiblingsWheel
in interface IGrid
public void moveXholonsToGrid(IXholon xhParent, boolean allowMultiple)
IGrid
moveXholonsToGrid
in interface IGrid
xhParent
- 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 |