neosim.implementation
Class ConnectionImpl
java.lang.Object
|
+--neosim.implementation.ConnectionImpl
- public class ConnectionImpl
- extends java.lang.Object
- implements Connection
A connection links a source entity/port to a destination entity/port,
and has a delay. It is possible to check the connection details for events
arriving on a port to get the delay, and source entity/port.
ConnectionIDs are assigned when the addInConnection() method of the
destination entity is called.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ConnectionImpl
public ConnectionImpl(EntityID srce,
PortID srcport,
EntityImpl destent,
PortID destport,
Time delay)
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
sendEvent
public void sendEvent(Event e)
- Specified by:
- sendEvent in interface Connection
setConnectionID
public void setConnectionID(ConnectionID cid)
- Specified by:
- setConnectionID in interface Connection