All Packages Class Hierarchy This Package Previous Next Index
Class simdistalg.Sim_message_info
java.lang.Object
|
+----simdistalg.Sim_message_info
- public class Sim_message_info
- extends Object
This class handles additional information passed inbetween nodes.
It stores the time that the message was sent, the sender of the
message, the port it was sent from and additional data provided by
the sender.
- See Also:
- sim_schedule, Sim_node, Sim_unidir_channel
-
m_data
-
-
m_dest_name
-
-
m_dest_port_name
-
-
m_from_port
-
-
m_from_port_name
-
-
m_sdata
-
-
m_sender_id
-
-
m_sender_name
-
-
m_time
-
-
Sim_message_info(double, int, String, Sim_port, String, String, String, Object, String)
- Create a message information.
-
get_data()
-
-
get_dest_name()
-
-
get_dest_port_name()
-
-
get_from_port()
-
-
get_from_port_name()
-
-
get_sdata()
-
-
get_sender_id()
-
-
get_sender_name()
-
-
get_start_time()
-
m_time
protected double m_time
m_sender_id
protected int m_sender_id
m_sender_name
protected String m_sender_name
m_from_port
protected Sim_port m_from_port
m_from_port_name
protected String m_from_port_name
m_dest_name
protected String m_dest_name
m_dest_port_name
protected String m_dest_port_name
m_data
protected Object m_data
m_sdata
protected String m_sdata
Sim_message_info
public Sim_message_info(double time,
int sender_id,
String sender_name,
Sim_port from_port,
String from_port_name,
String dest_name,
String dest_port_name,
Object data,
String sdata)
- Create a message information.
- Parameters:
- time - The time that the message was initiated
- sender_id - the id of the sender entity
- sender_name - The name of the sender entity
- from_port - a reference to the port that it was sent from
- from_port_name - the name of the port that the message was sent from
- dest_name - the name of the destination node
- dest_port_name - the name of the destination port
- data - additional data
- sdata - a string representation of that data
get_start_time
public double get_start_time()
get_sender_id
public int get_sender_id()
get_sender_name
public String get_sender_name()
get_from_port
public Sim_port get_from_port()
get_from_port_name
public String get_from_port_name()
get_dest_name
public String get_dest_name()
get_dest_port_name
public String get_dest_port_name()
get_data
public Object get_data()
get_sdata
public String get_sdata()
All Packages Class Hierarchy This Package Previous Next Index