org.enhydra.shark.client.utilities
Class LimitStruct

java.lang.Object
  extended by org.enhydra.shark.client.utilities.LimitStruct

public class LimitStruct
extends java.lang.Object

Structure that holds relevant information for limit/deadline checking.

Author:
Sasa Bojanic

Field Summary
protected static long hrs24
           
protected static long mininms
           
 
Constructor Summary
LimitStruct(int h, int m, int aom)
           
 
Method Summary
 boolean checkForLimit()
           
 int getAllowableOffsetInMinutes()
           
 int getHour()
           
 long getLastCheckedTime()
           
 int getMinute()
           
 void setAllowableOffsetInMinutes(int aom)
           
 void setHour(int h)
           
 void setLastCheckedTime(long lct)
           
 void setMinute(int m)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hrs24

protected static final long hrs24
See Also:
Constant Field Values

mininms

protected static final long mininms
See Also:
Constant Field Values
Constructor Detail

LimitStruct

public LimitStruct(int h,
                   int m,
                   int aom)
            throws java.lang.Exception
Parameters:
h - the value between 0 and 23 which specifies the hour
m - the value between 0 and 59 which specifies the minute
aom - the value between 1 and 720 which specifies the offset in minute
Throws:
java.lang.Exception
Method Detail

getHour

public int getHour()

setHour

public void setHour(int h)

getMinute

public int getMinute()

setMinute

public void setMinute(int m)

getAllowableOffsetInMinutes

public int getAllowableOffsetInMinutes()

setAllowableOffsetInMinutes

public void setAllowableOffsetInMinutes(int aom)

getLastCheckedTime

public long getLastCheckedTime()

setLastCheckedTime

public void setLastCheckedTime(long lct)

checkForLimit

public boolean checkForLimit()

toString

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