public abstract class Entity
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Entity.PortAlias |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Entity.PortAlias> |
portAliases |
protected java.util.List<Port> |
ports |
protected SimNode |
simNode |
Modifier and Type | Method and Description |
---|---|
void |
addPort(Port port)
Adds a port to this entity.
|
void |
aliasPort(Entity originalPortEntity,
java.lang.String originalLocalPortName,
java.lang.String aliasLocalPortName) |
void |
aliasPort(Port originalPort,
java.lang.String aliasLocalPortName) |
void |
connect(java.lang.String fromLocalPortName,
Entity toEntity,
java.lang.String toLocalPortName) |
void |
disconnect(Entity fromEntity,
java.lang.String fromLocalPortName,
Entity toEntity,
java.lang.String toLocalPortName) |
java.lang.String |
getName() |
SimNode |
getNode() |
Port |
getPortByName(java.lang.String localPortName)
searches port list and returns port with corresponding name
|
java.util.List<Port> |
getPorts()
Returns a read-only list of this entity's ports.
|
boolean |
isPortKnown(java.lang.String localPortName)
searches port list and returns true, if a port with the right name is in
it
|
void |
unaliasPort(java.lang.String aliasLocalPortName) |
protected final SimNode simNode
protected java.util.List<Port> ports
protected java.util.List<Entity.PortAlias> portAliases
public Entity(SimNode ownNode)
public java.util.List<Port> getPorts()
public void addPort(Port port)
public Port getPortByName(java.lang.String localPortName)
public boolean isPortKnown(java.lang.String localPortName)
public void aliasPort(Port originalPort, java.lang.String aliasLocalPortName)
public void aliasPort(Entity originalPortEntity, java.lang.String originalLocalPortName, java.lang.String aliasLocalPortName)
public void unaliasPort(java.lang.String aliasLocalPortName)
public void connect(java.lang.String fromLocalPortName, Entity toEntity, java.lang.String toLocalPortName)
public void disconnect(Entity fromEntity, java.lang.String fromLocalPortName, Entity toEntity, java.lang.String toLocalPortName)
public java.lang.String getName()
public SimNode getNode()