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

Variable Index

 o m_data
 o m_dest_name
 o m_dest_port_name
 o m_from_port
 o m_from_port_name
 o m_sdata
 o m_sender_id
 o m_sender_name
 o m_time

Constructor Index

 o Sim_message_info(double, int, String, Sim_port, String, String, String, Object, String)
Create a message information.

Method Index

 o get_data()
 o get_dest_name()
 o get_dest_port_name()
 o get_from_port()
 o get_from_port_name()
 o get_sdata()
 o get_sender_id()
 o get_sender_name()
 o get_start_time()

Variables

 o m_time
 protected double m_time
 o m_sender_id
 protected int m_sender_id
 o m_sender_name
 protected String m_sender_name
 o m_from_port
 protected Sim_port m_from_port
 o m_from_port_name
 protected String m_from_port_name
 o m_dest_name
 protected String m_dest_name
 o m_dest_port_name
 protected String m_dest_port_name
 o m_data
 protected Object m_data
 o m_sdata
 protected String m_sdata

Constructors

 o 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

Methods

 o get_start_time
 public double get_start_time()
 o get_sender_id
 public int get_sender_id()
 o get_sender_name
 public String get_sender_name()
 o get_from_port
 public Sim_port get_from_port()
 o get_from_port_name
 public String get_from_port_name()
 o get_dest_name
 public String get_dest_name()
 o get_dest_port_name
 public String get_dest_port_name()
 o get_data
 public Object get_data()
 o get_sdata
 public String get_sdata()

All Packages  Class Hierarchy  This Package  Previous  Next  Index