neosim.implementation
Class GeneralProjectionImpl

java.lang.Object
  |
  +--neosim.implementation.ProjectionImpl
        |
        +--neosim.implementation.GeneralProjectionImpl

public class GeneralProjectionImpl
extends ProjectionImpl
implements GeneralProjection

A general projection defines a set of connections between two populations. The projection is specified with a SourceMethod, which runs on each member of the source population and issues connection requests to the destination population. The destination method decides to fulfill/deny these requests.

See Also:
Serialized Form

Constructor Summary
GeneralProjectionImpl(Population srcPop, Population destPop, SourceMethod sm, DestMethod dm)
           
 
Method Summary
 DestMethod getDestMethod()
           
 Population getDestPop()
           
 SourceMethod getSrcMethod()
           
 Population getSrcPop()
           
 boolean isGeneralProjection()
           
 
Methods inherited from class neosim.implementation.ProjectionImpl
getConnections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralProjectionImpl

public GeneralProjectionImpl(Population srcPop,
                             Population destPop,
                             SourceMethod sm,
                             DestMethod dm)
Method Detail

getSrcPop

public Population getSrcPop()
Specified by:
getSrcPop in interface GeneralProjection

getDestPop

public Population getDestPop()
Specified by:
getDestPop in interface GeneralProjection

getSrcMethod

public SourceMethod getSrcMethod()
Specified by:
getSrcMethod in interface GeneralProjection

getDestMethod

public DestMethod getDestMethod()
Specified by:
getDestMethod in interface GeneralProjection

isGeneralProjection

public boolean isGeneralProjection()
Overrides:
isGeneralProjection in class ProjectionImpl
Tags copied from interface: Projection
Returns:
whether this projection is specificed as a list of connections, or as src/dst methods