Constructor and Description |
---|
Port(int port,
SystemImpl owner) |
Modifier and Type | Method and Description |
---|---|
void |
checkConnection() |
void |
connectWire(WireImpl wire)
Connects wire to this port.
|
SystemImpl |
getOwner() |
int |
getPort() |
WireImpl |
getWire() |
boolean |
isConnected() |
abstract void |
step(Signal sig) |
public WireImpl wire
public Port(int port, SystemImpl owner)
name
- name of the portowner
- system to which this port belongs topublic void connectWire(WireImpl wire)
wire
- wire connected to system outputpublic abstract void step(Signal sig)
public WireImpl getWire()
public SystemImpl getOwner()
public boolean isConnected()
public int getPort()
public void checkConnection()