All Packages Class Hierarchy This Package Previous Next Index
Class eduni.simjava.Sim_port
java.lang.Object
|
+----eduni.simjava.Sim_port
- public class Sim_port
- extends Object
This class represents ports which are used to connect entities for
event passing.
- See Also:
- Sim_system
-
Sim_port(String)
- Constructor, for stand-alone simulations.
-
Sim_port(String, String, int, int)
- Constructor for use with the eduni.simanim package for animations.
-
get_dest()
- Get the unique id number of the destination entity of this port.
-
get_dest_ename()
- Get the name of the destination entity of this port.
-
get_pname()
- Get the name of this port.
-
get_src()
- Get the unique id number of the source entity of this port.
Sim_port
public Sim_port(String port_name)
- Constructor, for stand-alone simulations.
- Parameters:
- port_name - The name to identify this port
- Returns:
- A new instance of the class Sim_port
Sim_port
public Sim_port(String port_name,
String image_name,
int side,
int pos)
- Constructor for use with the eduni.simanim package for animations.
- Parameters:
- port_name - The name to identify this port
- image_name - The name of the gif graphics file to use for this port's
icon, (without the ".gif" extension)
- side - Which side of the parent entity the port should be drawn on,
one of Anim_port.LEFT, Anim_port.RIGHT, Anim_port.TOP, or
Anim_port.BOTTOM.
- pos - How many pixels along that side the port should be drawn.
- Returns:
- A new instance of the class Sim_port
get_dest_ename
public String get_dest_ename()
- Get the name of the destination entity of this port.
- Returns:
- The name of the entity
get_pname
public String get_pname()
- Get the name of this port.
- Returns:
- The name
get_dest
public int get_dest()
- Get the unique id number of the destination entity of this port.
- Returns:
- The id number
get_src
public int get_src()
- Get the unique id number of the source entity of this port.
- Returns:
- The id number
All Packages Class Hierarchy This Package Previous Next Index