lanSimulation.internals
Class Packet

java.lang.Object
  extended bylanSimulation.internals.Packet

public class Packet
extends java.lang.Object

A Packet represents a unit of information to be sent over the Local Area Network (LAN).


Field Summary
 java.lang.String destination_
          Holds the name of the Node which should receive the information.
 java.lang.String message_
          Holds the actual message to be send over the network.
 java.lang.String origin_
          Holds the name of the Node which initiated the request.
 
Constructor Summary
Packet(java.lang.String message, java.lang.String destination)
          Construct a Packet with given #message and #destination.
Packet(java.lang.String message, java.lang.String origin, java.lang.String destination)
          Construct a Packet with given #message, #origin and #receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message_

public java.lang.String message_
Holds the actual message to be send over the network.


origin_

public java.lang.String origin_
Holds the name of the Node which initiated the request.


destination_

public java.lang.String destination_
Holds the name of the Node which should receive the information.

Constructor Detail

Packet

public Packet(java.lang.String message,
              java.lang.String destination)
Construct a Packet with given #message and #destination.


Packet

public Packet(java.lang.String message,
              java.lang.String origin,
              java.lang.String destination)
Construct a Packet with given #message, #origin and #receiver.