|
SimJava v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--eduni.simjava.Sim_port
This class represents ports which are used to connect entities for event passing.
Sim_system,
Sim_entity| Constructor Summary | |
Sim_port(java.lang.String port_name)
Constructor for standalone simulations. |
|
Sim_port(java.lang.String port_name,
java.lang.String image_name,
int side,
int pos)
Constructor for use with the eduni.simanim package for animations. |
|
| Method Summary | |
java.lang.String |
get_dest_ename()
Get the name of the destination entity of this port. |
int |
get_dest()
Get the unique id number of the destination entity of this port. |
java.lang.String |
get_pname()
Get the name of this port. |
int |
get_src()
Get the unique id number of the source entity of this port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Sim_port(java.lang.String port_name)
port_name - The name with which to identify this port
public Sim_port(java.lang.String port_name,
java.lang.String image_name,
int side,
int pos)
eduni.simanim package for animations.port_name - The name with which to identify this portimage_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.BOTTOMpos - How many pixels along that side the port should be drawn| Method Detail |
public java.lang.String get_dest_ename()
public java.lang.String get_pname()
public int get_dest()
public int get_src()
|
SimJava v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||