csli.dialog.app.calo.browser
Class Feedback

java.lang.Object
  extended by csli.dialog.app.calo.browser.Feedback
Direct Known Subclasses:
ObjectAction

public abstract class Feedback
extends Object

An action taken to provide feedback to some given information. Feedback actions are identified by a unique ID, and the equals and hashCode use this.

Author:
niekrasz

Constructor Summary
Feedback()
          Construct a feedback action with a new unique ID.
 
Method Summary
 boolean equals(Object obj)
           
 String getActor()
           
 long getEndTime()
           
 String getId()
           
 long getStartTime()
           
 int hashCode()
           
static void main(String[] args)
           
static void makeOpiSpec(File file)
          This method generates an OPI spec automatically from the set of feedback classes which are listed in this package.
 void setActor(String actor)
           
 void setEndTime(long endTime)
           
 void setId(String id)
          NOTE: YOU SHOULD NOT CALL THIS FUNCTION UNLESS YOU KNOW WHAT YOU ARE DOING! IT IS SET AUTOMATICALLY.
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feedback

public Feedback()
Construct a feedback action with a new unique ID. The bean decoder will reset the ID, so this doesn't matter when loading encoded actions.

Method Detail

main

public static void main(String[] args)

makeOpiSpec

public static void makeOpiSpec(File file)
This method generates an OPI spec automatically from the set of feedback classes which are listed in this package. This is used to align these classes automatically with the OPI-encoded version of them.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getActor

public String getActor()
Returns:
Returns the actor.

getEndTime

public long getEndTime()
Returns:
Returns the endTime.

getId

public String getId()
Returns:
Returns the id.

getStartTime

public long getStartTime()
Returns:
Returns the startTime.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setActor

public void setActor(String actor)
Parameters:
actor - The actor to set.

setEndTime

public void setEndTime(long endTime)
Parameters:
endTime - The endTime to set.

setId

public void setId(String id)
NOTE: YOU SHOULD NOT CALL THIS FUNCTION UNLESS YOU KNOW WHAT YOU ARE DOING! IT IS SET AUTOMATICALLY.

Parameters:
id - The id to set.

setStartTime

public void setStartTime(long startTime)
Parameters:
startTime - The startTime to set.