cdx.scorebot.util
Class Event

java.lang.Object
  extended by cdx.scorebot.util.Event
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ScoreEvent, TestEvent

public abstract class Event
extends java.lang.Object
implements java.io.Serializable

generic Event class which keeps a timestamp of when it was created

Author:
David Underhill
See Also:
Serialized Form

Constructor Summary
Event()
          default constructor
 
Method Summary
 java.lang.String getFilename()
          gets where the filename is saved or null if unknown or nowhere
 Timestamp getTimeGenerated()
          gets when the event was generated
abstract  Timestamp getTimeReported()
          gets the time the event was reported
 boolean isReported()
          whether or not this ScoreEvent has been reported or is available in the basic output
 void setFilename(java.lang.String filename)
          sets where the filename is saved or null if unknown or nowhere
 void setTimeGenerated(Timestamp timeGenerated)
          sets when the event was generated
abstract  void setTimeReported(Timestamp time)
          sets the time the event was reported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
default constructor

Method Detail

getTimeGenerated

public Timestamp getTimeGenerated()
gets when the event was generated


setTimeGenerated

public void setTimeGenerated(Timestamp timeGenerated)
sets when the event was generated


isReported

public final boolean isReported()
whether or not this ScoreEvent has been reported or is available in the basic output

Returns:
true if known or reported

getTimeReported

public abstract Timestamp getTimeReported()
gets the time the event was reported


setTimeReported

public abstract void setTimeReported(Timestamp time)
sets the time the event was reported


getFilename

public java.lang.String getFilename()
gets where the filename is saved or null if unknown or nowhere


setFilename

public void setFilename(java.lang.String filename)
sets where the filename is saved or null if unknown or nowhere