Class EventRecord

    • Constructor Detail

      • EventRecord

        public EventRecord()
        Default constructor. A default constructor is necessary for ontological classes.
      • EventRecord

        public EventRecord​(Event evt,
                           Location l)
        Construct an event record, attaching a location and a timestamp to an event object.
        Parameters:
        evt - The occurred event.
        l - The location where the event occurred.
    • Method Detail

      • setWhat

        public void setWhat​(Event evt)
        Set the what slot of this event.
        Parameters:
        id - The occurred event.
      • getWhat

        public Event getWhat()
        Retrieve the value of the what slot of this event, containing the occurred event.
        Returns:
        The value of the what slot, or null if no value was set.
      • setWhen

        public void setWhen​(Date d)
        Set the when slot of this event.
        Parameters:
        d - The time instant when the event occurred.
      • getWhen

        public Date getWhen()
        Retrieve the value of the when slot of this event, containing the time instant when the event occurred.
        Returns:
        The value of the when slot, or null if no value was set.
      • setWhere

        public void setWhere​(Location l)
        Set the where slot of this event.
        Parameters:
        l - The location where the event occurred.
      • getWhere

        public Location getWhere()
        Retrieve the value of the where slot of this event, containing the location where the event occurred.
        Returns:
        The value of the where slot, or null if no value was set.