org.jscience.history
Class Event

java.lang.Object
  extended by org.jscience.history.Event

public class Event
extends java.lang.Object

A class representing the events that happen in history (or even individual history) in an ordonned manner.


Constructor Summary
Event(java.util.Date startDate, java.util.Date endDate, java.lang.String happening)
          Creates a new Event object.
Event(java.util.Date startDate, java.lang.String happening)
          Creates a new Event object.
 
Method Summary
 java.util.Date getEndDate()
          DOCUMENT ME!
 java.lang.String getHappening()
          DOCUMENT ME!
 java.util.Date getStartDate()
          DOCUMENT ME!
 boolean happensAfter(Event event)
          DOCUMENT ME!
 boolean happensBefore(Event event)
          DOCUMENT ME!
 boolean isIncluded(Event event)
          DOCUMENT ME!
 boolean isSimultaneous(Event event)
          DOCUMENT ME!
 boolean overlaps(Event event)
          DOCUMENT ME!
 void setEndDate(java.util.Date endDate)
          DOCUMENT ME!
 void setStartDate(java.util.Date startDate)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(java.util.Date startDate,
             java.lang.String happening)
Creates a new Event object.

Parameters:
startDate - DOCUMENT ME!
happening - DOCUMENT ME!

Event

public Event(java.util.Date startDate,
             java.util.Date endDate,
             java.lang.String happening)
Creates a new Event object.

Parameters:
startDate - DOCUMENT ME!
endDate - DOCUMENT ME!
happening - DOCUMENT ME!
Method Detail

getStartDate

public java.util.Date getStartDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStartDate

public void setStartDate(java.util.Date startDate)
DOCUMENT ME!

Parameters:
startDate - DOCUMENT ME!

getEndDate

public java.util.Date getEndDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setEndDate

public void setEndDate(java.util.Date endDate)
DOCUMENT ME!

Parameters:
endDate - DOCUMENT ME!

getHappening

public java.lang.String getHappening()
DOCUMENT ME!

Returns:
DOCUMENT ME!

happensBefore

public boolean happensBefore(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!
Returns:
DOCUMENT ME!

happensAfter

public boolean happensAfter(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!
Returns:
DOCUMENT ME!

isIncluded

public boolean isIncluded(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!
Returns:
DOCUMENT ME!

overlaps

public boolean overlaps(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!
Returns:
DOCUMENT ME!

isSimultaneous

public boolean isSimultaneous(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!
Returns:
DOCUMENT ME!