|
|||||||||||
| 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.ealontro.app.XhCartCentering
Cart Centering System with Genetic Programming.
source: Koza, J. (1992). Genetic Programming. p.122-147
| Field Summary | |
static int |
P_ACCELERATION
|
static int |
P_BEHAVIOR
|
static int |
P_CART
|
static int |
P_VELOCITY
|
static int |
P_XPOSITION
|
java.lang.String |
roleName
|
double |
val
|
| 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.ealontro.app.CeCartCentering |
AccelerationCE, BehaviorCE, CartCE, CartCenteringCE, CartCenteringSystemCE, ForceCE, GeneticProgramCE, NonTerminalCE, PfABSCE, PfAddCE, PfDivideCE, PfGTCE, PfMultiplyCE, PfNegOneCE, PfSubtractCE, PfVelocityCE, PfWrapperCE, PfXPositionCE, PopulationCE, PrimitiveCE, ProblemCE, StructureCE, TerminalCE, VelocityCE, XholonClassCE, XPositionCE |
| 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 | |
XhCartCentering()
Constructor. |
|
| Method Summary | |
void |
act()
Do some action during this time step. |
void |
decVal(double decAmount)
Decrement an internal double value by a specified amount. |
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context. |
double |
getVal()
Get the value of a "double" maintained by this xholon instance. |
void |
incVal(double incAmount)
Increment an internal double value by a specified amount. |
void |
initialize()
Initialize the tree node. |
double |
performDoubleActivity(IXholon activity)
Perform an activity including the entire activity subtree. |
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context. |
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.XholonWithPorts |
configure, getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, postConfigure, 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_XPOSITION
public static final int P_VELOCITY
public static final int P_ACCELERATION
public static final int P_CART
public static final int P_BEHAVIOR
public double val
public java.lang.String roleName
| Constructor Detail |
public XhCartCentering()
| Method Detail |
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic double getVal()
IXholon
getVal in interface IXholongetVal in class Xholonpublic void setVal(double val)
IXholon
setVal in interface IXholonsetVal in class Xholonpublic void incVal(double incAmount)
IXholon
incVal in interface IXholonincVal in class Xholonpublic void decVal(double decAmount)
IXholon
decVal in interface IXholondecVal in class Xholonpublic void setRoleName(java.lang.String roleName)
IXholon
setRoleName in interface IXholonsetRoleName in class Xholonpublic java.lang.String getRoleName()
IXholon
getRoleName in interface IXholongetRoleName in class Xholonpublic void act()
IXholon
act in interface IXholonact in class Xholonpublic double performDoubleActivity(IXholon activity)
IXholon
performDoubleActivity in interface IXholonperformDoubleActivity in class Xholonpublic java.lang.String toString()
toString in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||