|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WireConnector
Title: OSI Simulation Framework
This interface must be implemented by classes which are interested in data sent on a wire.Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
Method Summary | |
---|---|
void |
bePlugged(Wire wire,
int portNr)
This method should only be called by Wires, which inform this WireConnector that they are connected. |
void |
beUnplugged(Wire wire,
int portNr)
This method should only be called by Wires, which inform this WireConnector that they are disconnected |
void |
informAboutDataOnWire(Wire sender,
RawData data)
This method is called whenever a data package is received by a subscribed wire. |
Method Detail |
---|
void informAboutDataOnWire(Wire sender, RawData data)
sender
- If the sender is a Wire, sender contains the reference to the wire which received the packet.data
- The received data on the wirevoid bePlugged(Wire wire, int portNr) throws WiringException
wire
- Connected wire
WiringException
- May be thrown to veto against this wiringvoid beUnplugged(Wire wire, int portNr) throws WiringException
wire
- Disconnected wire
WiringException
- May be thrown on any error or veto
|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |