neosim.implementation
Class ParamConnectionSpec
java.lang.Object
|
+--neosim.implementation.ConnectionSpec
|
+--neosim.implementation.ParamConnectionSpec
- public class ParamConnectionSpec
- extends ConnectionSpec
A parameterised connection spec
Used for specifying individual connections
with extra parameters.
The entity gets a call to setSrc/DstConnectionParams( params )
which it can use to set connection-specific parameters.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ParamConnectionSpec
public ParamConnectionSpec(EntityID srce,
PortID srcpid,
EntityID deste,
PortID destpid,
Time delay,
java.util.Hashtable params)
setSrcParams
public void setSrcParams(Entity srce,
PortID srcp)
- Description copied from class: ConnectionSpec
- Place holders for setting additional src/dest parameters
This can be overridden to set e.g. a threshold
- Overrides:
- setSrcParams in class ConnectionSpec
setDstParams
public void setDstParams(Entity deste,
ConnectionID destcid)
- Description copied from class: ConnectionSpec
- Set any extra connection parameters at the destination end
e.g. a weight
- Overrides:
- setDstParams in class ConnectionSpec