|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coalevo.messaging.model.BaseEventInfo
public abstract class BaseEventInfo
Abstract base class for EventInfo implementations.
equals(Object) method to compare
identifier, to and from.
| Constructor Summary | |
|---|---|
protected |
BaseEventInfo(java.lang.String identifier,
AgentIdentifier from,
AgentIdentifier to)
Constructs the instance with final information. |
protected |
BaseEventInfo(java.lang.String identifier,
AgentIdentifier from,
AgentIdentifier to,
boolean b)
Constructs the instance with final information. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
long |
getCreated()
Returns the system time when this object was created. |
AgentIdentifier |
getFrom()
Returns the sender. |
java.lang.String |
getIdentifier()
Returns an identifier that corresponds to a specific message (to be send, cancelled, to be confirmed). |
AgentIdentifier |
getTo()
Returns the addressee. |
int |
hashCode()
|
boolean |
isMulticast()
Flag that indicates whether this info is related to a multicast or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseEventInfo(java.lang.String identifier,
AgentIdentifier from,
AgentIdentifier to)
identifier - the identifier of a message/event.from - the sender as AgentIdentifier.to - the addressee as AgentIdentifier.
protected BaseEventInfo(java.lang.String identifier,
AgentIdentifier from,
AgentIdentifier to,
boolean b)
identifier - the identifier of a message/event.from - the sender as AgentIdentifier.to - the addressee as AgentIdentifier.b - a flag that indicates if this is a multicast generated event info.| Method Detail |
|---|
public java.lang.String getIdentifier()
EventInfo
getIdentifier in interface EventInfopublic AgentIdentifier getTo()
EventInfo
getTo in interface EventInfoAgentIdentifier.public AgentIdentifier getFrom()
EventInfo
getFrom in interface EventInfoAgentIdentifier.public boolean isMulticast()
EventInfo
isMulticast in interface EventInfopublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic long getCreated()
EventInfo
getCreated in interface EventInfopublic int hashCode()
hashCode in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||