neosim.implementation
Class ConnectionSpec

java.lang.Object
  |
  +--neosim.implementation.ConnectionSpec
Direct Known Subclasses:
ParamConnectionSpec

public class ConnectionSpec
extends java.lang.Object
implements Connection

A specification of a connection to make

See Also:
Serialized Form

Constructor Summary
ConnectionSpec(EntityID srce, PortID srcpid, EntityID deste, PortID destpid, Time delay)
           
 
Method Summary
 ConnectionID getConnectionID()
           
 Time getDelay()
           
 EntityID getDstEntityID()
           
 PortID getDstPortID()
           
 EntityID getSrcEntityID()
           
 PortID getSrcPortID()
           
 void sendEvent(Event e)
           
 void setConnectionID(ConnectionID c)
           
 void setDelay(Time d)
          Set the delay asssociated with this connection.
 void setDstParams(Entity deste, ConnectionID destcid)
          Set any extra connection parameters at the destination end e.g.
 void setSrcParams(Entity srce, PortID srcp)
          Place holders for setting additional src/dest parameters This can be overridden to set e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionSpec

public ConnectionSpec(EntityID srce,
                      PortID srcpid,
                      EntityID deste,
                      PortID destpid,
                      Time delay)
Method Detail

setDelay

public void setDelay(Time d)
Set the delay asssociated with this connection.

getDstEntityID

public EntityID getDstEntityID()
Specified by:
getDstEntityID in interface Connection

getDstPortID

public PortID getDstPortID()
Specified by:
getDstPortID in interface Connection

getDelay

public Time getDelay()
Specified by:
getDelay in interface Connection

getSrcEntityID

public EntityID getSrcEntityID()
Specified by:
getSrcEntityID in interface Connection

getSrcPortID

public PortID getSrcPortID()
Specified by:
getSrcPortID in interface Connection

getConnectionID

public ConnectionID getConnectionID()
Specified by:
getConnectionID in interface Connection

setConnectionID

public void setConnectionID(ConnectionID c)
Specified by:
setConnectionID in interface Connection

sendEvent

public void sendEvent(Event e)
Specified by:
sendEvent in interface Connection

setSrcParams

public void setSrcParams(Entity srce,
                         PortID srcp)
Place holders for setting additional src/dest parameters This can be overridden to set e.g. a threshold

setDstParams

public void setDstParams(Entity deste,
                         ConnectionID destcid)
Set any extra connection parameters at the destination end e.g. a weight