org.simnet.coupling
Class MotorCoupling

java.lang.Object
  extended by org.simnet.coupling.Coupling
      extended by org.simnet.coupling.MotorCoupling

public class MotorCoupling
extends Coupling

Motor Coupling represents a coupling between the output node of a neural network and some form of agent movement. E.g. a motor neuron and a form of behavior.


Constructor Summary
MotorCoupling()
          Create a new motor coupling.
MotorCoupling(Agent a, Neuron n, String[] ca)
          Create a new motor coupling with the specified agent, neuron, and array of command names.
MotorCoupling(Agent a, String[] ca)
          Create a new motor coupling with the specified agent and array of command names.
MotorCoupling(Neuron n, String[] ca)
          Create a new motor coupling with the specified neuron and array of command names.
 
Method Summary
 String[] getCommandArray()
          Return the array of command names for this motor coupling.
 String getShortLabel()
          Return a short label for this motor coupling, that is the elements in the array of command names separated by spaces.
 void setCommandArray(String[] ca)
          Set the array of command names for this motor coupling to ca.
 String toString()
          Return debug information.
 
Methods inherited from class org.simnet.coupling.Coupling
getAgent, getAgentName, getNetworkName, getNeuron, getNeuronName, getWorld, getWorldName, getWorldType, initCastor, isAttached, setAgent, setAgentName, setNetworkName, setNeuron, setNeuronName, setWorldName, setWorldType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MotorCoupling

public MotorCoupling()
Create a new motor coupling.


MotorCoupling

public MotorCoupling(Agent a,
                     String[] ca)
Create a new motor coupling with the specified agent and array of command names.

Parameters:
a - agent for this coupling
ca - array of command names for this motor coupling

MotorCoupling

public MotorCoupling(Agent a,
                     Neuron n,
                     String[] ca)
Create a new motor coupling with the specified agent, neuron, and array of command names.

Parameters:
a - agent for this coupling
n - neuron for this coupling
ca - array of command names for this motor coupling

MotorCoupling

public MotorCoupling(Neuron n,
                     String[] ca)
Create a new motor coupling with the specified neuron and array of command names.

Parameters:
n - neuron for this coupling
ca - array of command names for this motor coupling
Method Detail

getCommandArray

public String[] getCommandArray()
Return the array of command names for this motor coupling.

Returns:
the array of command names for this motor coupling

setCommandArray

public void setCommandArray(String[] ca)
Set the array of command names for this motor coupling to ca.

Parameters:
ca - array of command names for this motor coupling

toString

public String toString()
Return debug information.

Overrides:
toString in class Coupling
Returns:
String

getShortLabel

public String getShortLabel()
Return a short label for this motor coupling, that is the elements in the array of command names separated by spaces.

Returns:
a short label for this motor coupling