cz.zcu.fav.kiv.jsim.ipc
Class JSimAssymetricMessage
java.lang.Object
cz.zcu.fav.kiv.jsim.ipc.JSimMessage
cz.zcu.fav.kiv.jsim.ipc.JSimAssymetricMessage
- Direct Known Subclasses:
- JSimMessageForReceiver, JSimMessageFromSender
public abstract class JSimAssymetricMessage
- extends JSimMessage
An assymetric message is a message where only the sender or the receiver is known but not both. This is an abstract class that serves as
a base for MessageFromSender and MessageForReceiver.
- Since:
- J-Sim version 0.3.0
- Version:
- J-Sim version 0.6.0
- Author:
- Jarda KAČER
Constructor Summary |
JSimAssymetricMessage(JSimProcess sender,
JSimProcess receiver,
java.lang.Object data)
Creates a new assymetric message with the specified sender, receiver, and user data. |
JSimAssymetricMessage(JSimProcess sender,
JSimProcess receiver,
java.lang.Object data,
int messageType)
Creates a new assymetric message with the specified sender, receiver, user data, and message type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSimAssymetricMessage
public JSimAssymetricMessage(JSimProcess sender,
JSimProcess receiver,
java.lang.Object data)
throws JSimInvalidParametersException
- Creates a new assymetric message with the specified sender, receiver, and user data. The default value of message type will be used.
- Parameters:
sender
- The sending process. Must not be specified if the receiver is specified.receiver
- The receiver. Must not be specified if the sender is specified.data
- User data that the message will carry.
- Throws:
JSimInvalidParametersException
- This exception is thrown out if none or both processes are specified.
JSimAssymetricMessage
public JSimAssymetricMessage(JSimProcess sender,
JSimProcess receiver,
java.lang.Object data,
int messageType)
throws JSimInvalidParametersException
- Creates a new assymetric message with the specified sender, receiver, user data, and message type.
- Parameters:
sender
- The sending process. Must not be specified if the receiver is specified.receiver
- The receiver. Must not be specified if the sender is specified.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 or when none or both processes are specified.
Copyright © 2000-2006 University of West Bohemia. Licensed under the Academic Free License v. 2.1. Build date 20060812.