cz.zcu.fav.kiv.jsim.ipc
Class JSimIndirectMessage

java.lang.Object
  extended by cz.zcu.fav.kiv.jsim.ipc.JSimMessage
      extended by cz.zcu.fav.kiv.jsim.ipc.JSimIndirectMessage

public class JSimIndirectMessage
extends JSimMessage

An indirect message is a message whose sender and receiver are not known. The message cannot be sent directly, only via a message box. Any process can pick it up from the message box later.

Since:
J-Sim version 0.3.0
Version:
J-Sim version 0.6.0
Author:
Jarda KAČER

Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.jsim.ipc.JSimMessage
ANY_MESSAGE_TYPE, data, DEFAULT_JSIM_MESSAGE_TYPE, messageType, receiver, sender, UNKNOWN_RECEIVER, UNKNOWN_SENDER
 
Constructor Summary
JSimIndirectMessage(java.lang.Object data)
          Creates a new indirect message with an unknown sender, an unspecified receiver, and the specified user data.
JSimIndirectMessage(java.lang.Object data, int messageType)
          Creates a new message with an unknown sender, an unspecified receiver, and the specified user data and message type.
 
Method Summary
 
Methods inherited from class cz.zcu.fav.kiv.jsim.ipc.JSimMessage
getData, getMessageType, getRealSender, getReceiver, getSender, setRealSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSimIndirectMessage

public JSimIndirectMessage(java.lang.Object data)
Creates a new indirect message with an unknown sender, an unspecified receiver, and the specified user data. The default value of message type will be used.

Parameters:
data - User data that the message will carry.

JSimIndirectMessage

public JSimIndirectMessage(java.lang.Object data,
                           int messageType)
                    throws JSimInvalidParametersException
Creates a new message with an unknown sender, an unspecified receiver, and the specified user data and message type.

Parameters:
data - User data that the message will carry.
messageType - The type of the message. Must be non-negative.
Throws:
JSimInvalidParametersException - This exception is thrown out if the message type is negative.


Copyright © 2000-2006 University of West Bohemia. Licensed under the Academic Free License v. 2.1. Build date 20060812.