|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simnet.coupling.Coupling
public class Coupling
Coupling represents a relation between an agent and an input or output node.
| Constructor Summary | |
|---|---|
Coupling()
Create a new coupling. |
|
Coupling(Agent a)
Create a new coupling with the specified agent. |
|
Coupling(Agent a,
Neuron n)
Create a new coupling with the specified agent and neuron. |
|
Coupling(Neuron n)
Create a new coupling with the specified neuron. |
|
| Method Summary | |
|---|---|
Agent |
getAgent()
Return the agent for this coupling. |
String |
getAgentName()
Return the agent name for this coupling. |
String |
getNetworkName()
Return the network name for this coupling. |
Neuron |
getNeuron()
Return the neuron for this coupling. |
String |
getNeuronName()
Return the neuron name for this coupling. |
World |
getWorld()
Return the world for this coupling, that is the parent world of this coupling's agent, or null if this coupling's
agent is null. |
String |
getWorldName()
Return the world name for this coupling. |
String |
getWorldType()
Return the world type for this coupling. |
void |
initCastor()
Initialize Castor support for this coupling. |
boolean |
isAttached()
Return true if this coupling has an associated agent,
that is if getAgent() != null. |
void |
setAgent(Agent agent)
Set the agent for this coupling to agent. |
void |
setAgentName(String agentName)
Set the agent name for this coupling to agentName. |
void |
setNetworkName(String networkName)
Set the network name for this coupling to networkName. |
void |
setNeuron(Neuron neuron)
Set the neuron for this coupling to neuron. |
void |
setNeuronName(String neuronName)
Set the neuron name for this coupling to neuronName. |
void |
setWorldName(String worldName)
Set the world name for this coupling to worldName. |
void |
setWorldType(String worldType)
Set the world type for this coupling to worldType. |
String |
toString()
Print debug information to System.out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Coupling()
public Coupling(Agent a,
Neuron n)
a - agent for this couplingn - neuron for this couplingpublic Coupling(Neuron n)
n - neuron for this couplingpublic Coupling(Agent a)
a - agent for this coupling| Method Detail |
|---|
public Agent getAgent()
public World getWorld()
null if this coupling's
agent is null.
null
if this coupling's agent is nullpublic void setAgent(Agent agent)
agent.
agent - the agent for this couplingpublic void initCastor()
public String getAgentName()
public void setAgentName(String agentName)
agentName.
agentName - agent name for this couplingpublic String getWorldName()
public void setWorldName(String worldName)
worldName.
worldName - world name for this couplingpublic String getWorldType()
public void setWorldType(String worldType)
worldType.
worldType - world type for this couplingpublic Neuron getNeuron()
public void setNeuron(Neuron neuron)
neuron.
neuron - neuron for this couplingpublic String getNeuronName()
public void setNeuronName(String neuronName)
neuronName.
neuronName - neuron name for this couplingpublic String toString()
System.out.
toString in class Objectpublic String getNetworkName()
public void setNetworkName(String networkName)
networkName.
networkName - network name for this couplingpublic boolean isAttached()
true if this coupling has an associated agent,
that is if getAgent() != null.
true if this coupling has an associated agent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||