org.activemath.content.metadata
Class LearningTime

java.lang.Object
  extended by org.activemath.content.metadata.LearningTime
All Implemented Interfaces:
Comparable

public class LearningTime
extends Object
implements Comparable

A date/action described by metadata.


Field Summary
protected static Logger log
           
 
Constructor Summary
LearningTime(String date)
           
 
Method Summary
 int compareTo(Object o)
           
 int getSeconds()
           
 String getTime()
           
 long intValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

LearningTime

public LearningTime(String date)
Method Detail

intValue

public long intValue()
Returns:
numerical value indicating an order on this metadata element.

getTime

public String getTime()
Returns:
original time string specified for learning time ("HH:mm:ss")

getSeconds

public int getSeconds()
Returns:
learning time in seconds

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable