Package jade.domain.introspection
Class EventRecord
- java.lang.Object
-
- jade.domain.introspection.EventRecord
-
- All Implemented Interfaces:
Concept,Term,Serializable,Serializable
public class EventRecord extends Object implements Concept
This class represents theevent-recordconcept in thejade-introspectionontology.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventRecord()Default constructor.EventRecord(Event evt, Location l)Construct an event record, attaching a location and a timestamp to an event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventgetWhat()Retrieve the value of thewhatslot of this event, containing the occurred event.DategetWhen()Retrieve the value of thewhenslot of this event, containing the time instant when the event occurred.LocationgetWhere()Retrieve the value of thewhereslot of this event, containing the location where the event occurred.voidsetWhat(Event evt)Set thewhatslot of this event.voidsetWhen(Date d)Set thewhenslot of this event.voidsetWhere(Location l)Set thewhereslot of this event.
-
-
-
Method Detail
-
setWhat
public void setWhat(Event evt)
Set thewhatslot of this event.- Parameters:
id- The occurred event.
-
getWhat
public Event getWhat()
Retrieve the value of thewhatslot of this event, containing the occurred event.- Returns:
- The value of the
whatslot, ornullif no value was set.
-
setWhen
public void setWhen(Date d)
Set thewhenslot of this event.- Parameters:
d- The time instant when the event occurred.
-
getWhen
public Date getWhen()
Retrieve the value of thewhenslot of this event, containing the time instant when the event occurred.- Returns:
- The value of the
whenslot, ornullif no value was set.
-
setWhere
public void setWhere(Location l)
Set thewhereslot of this event.- Parameters:
l- The location where the event occurred.
-
getWhere
public Location getWhere()
Retrieve the value of thewhereslot of this event, containing the location where the event occurred.- Returns:
- The value of the
whereslot, ornullif no value was set.
-
-