|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.fim.datalinksimulation.genericdevices.HardwareComponent
at.jku.fim.datalinksimulation.layer1.wire.Wire
at.jku.fim.datalinksimulation.layer1.wire.StandardWire
at.jku.fim.datalinksimulation.layer1.wire.damagedwire.BreakableWire
public class BreakableWire
A breakable wire: Works perfectly or doesn't pass on anything at all.
Copyright: (c) 2004
Company: FIM@JKU, www.fim.uni-linz.ac.at
Field Summary | |
---|---|
protected boolean |
broken
If value is set to true, the wire is broken and blocks completely |
protected Logger |
logger
Logger; otherwise it won't be shown in the log window |
Fields inherited from class at.jku.fim.datalinksimulation.layer1.wire.StandardWire |
---|
connectors |
Fields inherited from class at.jku.fim.datalinksimulation.genericdevices.HardwareComponent |
---|
networkComponentId |
Constructor Summary | |
---|---|
BreakableWire()
Constructor |
Method Summary | |
---|---|
boolean |
isBroken()
Retrieve the wire state |
void |
send(WireConnector sender,
RawData data)
Send data to the wire; the data should automatically be forwarded to the directly connected WireConnectors |
void |
setBroken(boolean broken)
Set the wire state |
Methods inherited from class at.jku.fim.datalinksimulation.layer1.wire.StandardWire |
---|
connect, disconnect |
Methods inherited from class at.jku.fim.datalinksimulation.layer1.wire.Wire |
---|
connect, disconnect |
Methods inherited from class at.jku.fim.datalinksimulation.genericdevices.HardwareComponent |
---|
getNetworkComponentId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Logger logger
protected boolean broken
Constructor Detail |
---|
public BreakableWire()
Method Detail |
---|
public void send(WireConnector sender, RawData data)
Wire
send
in class StandardWire
data
- The data to sendpublic boolean isBroken()
public void setBroken(boolean broken)
broken
- if true
the wire is broken
|
Bully Task (12.12.2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |