org.primordion.ctrnn.app
Class XhAdapSysLab

java.lang.Object
  extended byorg.primordion.xholon.base.Xholon
      extended byorg.primordion.xholon.base.XholonWithPorts
          extended byorg.primordion.ctrnn.base.XhAbstractCtrnn
              extended byorg.primordion.ctrnn.app.XhAdapSysLab
All Implemented Interfaces:
CeAdapSysLab, ICtrnn, IXholon

public class XhAdapSysLab
extends XhAbstractCtrnn
implements ICtrnn, CeAdapSysLab

Continuous-Time Recurrent Neural Network (CTRNN).

Since:
0.3 (Created on Feb 9, 2006)
Author:
Ken Webb

Field Summary
 
Fields inherited from class org.primordion.ctrnn.base.XhAbstractCtrnn
activation, bias, input, output, roleName, state, timeConstant, weight
 
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.ctrnn.base.ICtrnn
DELTA_T, NEURON_CLASS_NAME, P_OUT1, P_OUT2, P_OUT3, SIG_READ_AD, SIG_SET_MOTOR_POWER, SIZE_MYAPP_PORTS
 
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
 
Fields inherited from interface org.primordion.ctrnn.app.CeAdapSysLab
BehaviorCE, ConnectionCE, CtrnnCE, CtrnnEntityCE, MotorCE, NeuronCE, PhotoreceptorCE, RobotCE, SensorNeuronCE, XholonClassCE
 
Constructor Summary
XhAdapSysLab()
           
 
Method Summary
 void act()
          Do some action during this time step.
static int getNumLightsOn()
          Get the number of lights turned on.
 void postAct()
          Do any required work after doing the main action during a time step.
 void preAct()
          Do any setup required before doing the main action during a time step.
static void setNumLightsOn(int nLightsOn)
          Set the number of lights that are turned on, or random.
 
Methods inherited from class org.primordion.ctrnn.base.XhAbstractCtrnn
getRoleName, getVal, initialize, postConfigure, processReceivedMessage, setRoleName, toString
 
Methods inherited from class org.primordion.xholon.base.XholonWithPorts
configure, getMaxPorts, getPort, 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, postOrderPrint, postReconfigure, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, 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, setVal, setVariableValue, setXhc, swapNode, treeSize, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.primordion.xholon.base.IXholon
appendChild, appendChild, appendChild, cleanup, configure, configure, createStructure, decVal, decVal, depth, draw, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumSiblings, getParentNode, getPort, getPreviousSibling, getRoleName, getRootNode, getSiblings, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXhcName, getXhType, handleNodeSelection, hasAncestor, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, height, incVal, incVal, initialize, initStatics, inOrderPrint, insertAfter, insertBefore, insertFirstChild, isActiveObject, isBound, isContainer, isExternal, isInternal, isLeaf, isPassiveObject, isRootNode, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postConfigure, postOrderPrint, postReconfigure, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, reconfigure, remove, removeChild, sendMessage, sendMessage, sendMessage, setAttributeVal, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setPorts, setRoleName, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, terminate, treeSize, writeXml
 

Constructor Detail

XhAdapSysLab

public XhAdapSysLab()
Method Detail

preAct

public void preAct()
Description copied from interface: IXholon
Do any setup required before doing the main action during a time step.

Specified by:
preAct in interface IXholon
Overrides:
preAct in class Xholon

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 Xholon

postAct

public void postAct()
Description copied from interface: IXholon
Do any required work after doing the main action during a time step.

Specified by:
postAct in interface IXholon
Overrides:
postAct in class Xholon

setNumLightsOn

public static void setNumLightsOn(int nLightsOn)
Set the number of lights that are turned on, or random.

Parameters:
nLightsOn - The number of lights.

getNumLightsOn

public static int getNumLightsOn()
Get the number of lights turned on.

Returns:
The number of lights.