org.simnet.coupling
Class SensoryCoupling

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

public class SensoryCoupling
extends Coupling

Sensory Coupling represents an coupling between an agent's sensory apparatus and an input node of a neural network.


Constructor Summary
SensoryCoupling()
          Create a new sensory coupling.
SensoryCoupling(Agent a, Neuron n, String[] sa)
          Create a new sensory coupling with the specified agent, neuron, and array of sensor names.
SensoryCoupling(Agent a, String[] sa)
          Create a new sensory coupling with the specified agent and array of sensor names.
SensoryCoupling(Neuron n, String[] sa)
          Create a new sensory coupling with the specified neuron and array of sensor names.
 
Method Summary
 String[] getSensorArray()
          Return the array of sensor names for this sensory coupling.
 String getShortLabel()
          Return a short label for this sensory coupling, that is the elements in the array of sensor names separated by spaces.
 void setSensorArray(String[] sa)
          Set the array of sensor names for this sensory coupling to sa.
 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

SensoryCoupling

public SensoryCoupling()
Create a new sensory coupling.


SensoryCoupling

public SensoryCoupling(Agent a,
                       Neuron n,
                       String[] sa)
Create a new sensory coupling with the specified agent, neuron, and array of sensor names.

Parameters:
a - agent for this coupling
n - neuron for this coupling
sa - array of sensor names for this coupling

SensoryCoupling

public SensoryCoupling(Neuron n,
                       String[] sa)
Create a new sensory coupling with the specified neuron and array of sensor names.

Parameters:
n - neuron for this coupling
sa - array of sensor names for this coupling

SensoryCoupling

public SensoryCoupling(Agent a,
                       String[] sa)
Create a new sensory coupling with the specified agent and array of sensor names.

Parameters:
a - agent for this coupling
sa - array of sensor names for this coupling
Method Detail

getSensorArray

public String[] getSensorArray()
Return the array of sensor names for this sensory coupling.

Returns:
the array of sensor names for this sensory coupling

setSensorArray

public void setSensorArray(String[] sa)
Set the array of sensor names for this sensory coupling to sa.

Parameters:
sa - array of sensor names

toString

public String toString()
Return debug information.

Overrides:
toString in class Coupling
Returns:
String

getShortLabel

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

Returns:
a short label for this sensory coupling