|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.planets_project.services.datatypes.Event
public final class Event
If the Event corresponds to the invocation of a Service, then most of this can be filled in by the caller.
TODO Should some space be left in this item for a more extensible system, such as name-value pairs implementing [subject, predicate, object] triples? The subject is clearly the Event, so use 'dc.creator', 'dc.terms.isPartOf', 'planets.process.info' etc?
The ProcessLog should usually be returned by the called Service, and allows the Service to pass back some information about what happened.
Instances of this class are immutable and so can be shared freely.
Constructor Summary | |
---|---|
Event(java.lang.String summary,
java.lang.String datetime,
java.lang.Double duration,
Agent agent,
java.util.List<Property> properties)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Agent |
getAgent()
|
java.lang.String |
getDatetime()
|
double |
getDuration()
|
java.util.List<Property> |
getProperties()
|
java.lang.String |
getSummary()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Event(java.lang.String summary, java.lang.String datetime, java.lang.Double duration, Agent agent, java.util.List<Property> properties)
summary
- The event summarydatetime
- The event dateduration
- The event durationagent
- The event agentproperties
- The event propertiesMethod Detail |
---|
public java.lang.String getSummary()
public java.lang.String getDatetime()
public double getDuration()
public Agent getAgent()
public java.util.List<Property> getProperties()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |