fr.ifremer.isisfish.types
Class TimeUnit

java.lang.Object
  extended by fr.ifremer.isisfish.types.TimeUnit
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<TimeUnit>

public class TimeUnit
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<TimeUnit>

Author:
poussin
See Also:
Serialized Form

Field Summary
static double HOUR_PER_DAY
           
protected  double time
          le temps en seconde
 
Constructor Summary
TimeUnit(double time)
           
 
Method Summary
 int compareTo(TimeUnit o)
           
 double getDay()
           
 double getHour()
           
 double getTime()
           
 TimeUnit setDay(double day)
           
 TimeUnit setHour(double hour)
           
 TimeUnit setTime(double time)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOUR_PER_DAY

public static final double HOUR_PER_DAY
See Also:
Constant Field Values

time

protected double time
le temps en seconde

Constructor Detail

TimeUnit

public TimeUnit(double time)
Parameters:
time - le temps en seconde
Method Detail

getTime

public double getTime()
Returns:
Returns the time in second

setTime

public TimeUnit setTime(double time)
Parameters:
time - The time to set in second

getHour

public double getHour()

setHour

public TimeUnit setHour(double hour)

getDay

public double getDay()

setDay

public TimeUnit setDay(double day)

compareTo

public int compareTo(TimeUnit o)
Specified by:
compareTo in interface java.lang.Comparable<TimeUnit>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999-2010 CodeLutin. All Rights Reserved.