public final class SignalMessage extends Message
Constructor and Description |
---|
SignalMessage(Identifier sender,
Identifier receiver,
ObjectValue objectValue)
Creates new instance.
|
SignalMessage(String sourceDescription,
Identifier sender,
Identifier receiver,
ObjectValue objectValue)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ObjectValue |
getObjectValue()
Returns the signal object value.
|
String |
getSourceDescription()
Gets the description of the signals source.
|
int |
hashCode() |
String |
toString() |
getReceiver, getSender
public SignalMessage(Identifier sender, Identifier receiver, ObjectValue objectValue)
sender
- the senderreceiver
- the receiverobjectValue
- the object valueNullPointerException
- if receiver
is nullpublic SignalMessage(String sourceDescription, Identifier sender, Identifier receiver, ObjectValue objectValue)
sourceDescription
- the description of the signals sourcesender
- receiver
- objectValue
- public ObjectValue getObjectValue()
public String getSourceDescription()
public boolean equals(Object o)
equals
in class CommunicationUnit
public int hashCode()
hashCode
in class CommunicationUnit
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.