| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsdp.util.ZoneAdjustment
public class ZoneAdjustment
Represents an adjustment time and his offset from the base time, for a repeated session scheduling.
TimeZone, 
Serialized Form| Field Summary | |
|---|---|
| protected  long | offsetThe adjustment offset | 
| protected  long | timeThe NTP representation of adjustment time | 
| Constructor Summary | |
|---|---|
| protected  | ZoneAdjustment()Creates a new ZoneAdjustment | 
|   | ZoneAdjustment(Date time,
               long offset)Creates a new ZoneAdjustment. | 
|   | ZoneAdjustment(long time,
               long offset)Creates a new ZoneAdjustment. | 
| Method Summary | |
|---|---|
|  Object | clone()Returns a clone of this zone adjustment. | 
|  long | getOffset()Returns the adjustment offset. | 
|  long | getTime()Returns the adjustment time. | 
|  void | setOffset(long offset)Sets the adjustment offset. | 
|  void | setTime(long time)Sets the adjustment time. | 
|  String | toString()Returns a string representation of the object. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected long offset
protected long time
| Constructor Detail | 
|---|
protected ZoneAdjustment()
public ZoneAdjustment(Date time,
                      long offset)
               throws SDPException
time - the adjustment timeoffset - the adjustment offset
SDPException - if the NTP representation of the adjustment time is
         negative
public ZoneAdjustment(long time,
                      long offset)
               throws SDPException
time - the adjustment timeoffset - the adjustment offset
SDPException - if the adjustment time is negative| Method Detail | 
|---|
public Object clone()
clone in class Objectpublic long getOffset()
public long getTime()
public void setOffset(long offset)
offset - the adjustment offset
public void setTime(long time)
             throws SDPException
time - the adjustment time
SDPException - if the adjustment time is negativepublic String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||