|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objecteduni.simjava.Sim_port
This class represents ports which are used to connect entities for event passing.
Sim_system,
Sim_entity| Constructor Summary | |
Sim_port(String port_name)
Constructor for standalone simulations. |
|
Sim_port(String port_name,
String image_name,
int side,
int pos)
Constructor for use with the eduni.simanim package for animations. |
|
| Method Summary | |
(package private) void |
connect(Sim_entity dest)
|
(package private) eduni.simanim.Anim_port |
get_aport()
|
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. |
String |
get_pname()
Get the name of this port. |
int |
get_src()
Get the unique id number of the source entity of this port. |
(package private) void |
set_src(int s)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Sim_port(String port_name)
port_name - The name with which to identify this port
public Sim_port(String port_name,
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 String get_dest_ename()
public String get_pname()
public int get_dest()
public int get_src()
eduni.simanim.Anim_port get_aport()
void set_src(int s)
void connect(Sim_entity dest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||