ca.nengo.model.impl
Class ProjectionImplTest.MockOrigin

java.lang.Object
  extended by ca.nengo.model.impl.ProjectionImplTest.MockOrigin
All Implemented Interfaces:
Origin, java.io.Serializable, java.lang.Cloneable
Enclosing class:
ProjectionImplTest

public static class ProjectionImplTest.MockOrigin
extends java.lang.Object
implements Origin

See Also:
Serialized Form

Constructor Summary
ProjectionImplTest.MockOrigin(java.lang.String name, int dimensions)
           
 
Method Summary
 Origin clone()
           
 int getDimensions()
           
 java.lang.String getName()
           
 Node getNode()
           
 InstantaneousOutput getValues()
           
 void setDimensions(int dim)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionImplTest.MockOrigin

public ProjectionImplTest.MockOrigin(java.lang.String name,
                                     int dimensions)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Origin
Returns:
Name of this Origin (unique in the scope of a source of Origins, eg a Neuron or Ensemble)

setName

public void setName(java.lang.String name)

getDimensions

public int getDimensions()
Specified by:
getDimensions in interface Origin
Returns:
Dimensionality of information coming from this Origin (eg number of axons, or dimension of decoded function of variables represented by the Ensemble)

setDimensions

public void setDimensions(int dim)

getValues

public InstantaneousOutput getValues()
Specified by:
getValues in interface Origin
Returns:
Instantaneous output from this Origin.

getNode

public Node getNode()
Specified by:
getNode in interface Origin
Returns:
The Node to which the Origin belongs

clone

public Origin clone()
             throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Origin
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException