|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.monitor.ProjMonitorHelper
Helper class giving remote access to ProjMonitorService functionality.
It also holds utility functions and the time granularityto be used for
project management.
Supported API: true
Extendable: false
ProjMonitorService
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static long |
END_OF_DAY
Gives the time considered to be the end of day for deadline purposes. |
static long |
EXTERNALIZATION_VERSION_UID
|
private static long |
MILLIS_IN_HOUR
|
private static long |
MILLIS_IN_MINUTE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static ProjMonitorService |
service
Supported API: true |
static long |
TIME_UNIT
Number of minutes that gives the time granularity. |
private static long |
timeUnit
|
private static boolean |
VERBOSE
|
private static double |
WORK_PRECISION
|
Constructor Summary | |
ProjMonitorHelper()
|
Method Summary | |
static boolean |
afterTime(Timestamp time1,
Timestamp time2)
Computes whether the first date is after the second for project management purposes. |
static Timestamp |
getDeadlineTime(Timestamp time)
Returns the deadline time for the day of the time passed as argument. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ProjMonitorHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static boolean |
sameCurrency(Currency curr1,
Currency curr2)
Returns whether two cost objects are equal. |
static boolean |
sameElapsedTime(TimeToElapse time1,
TimeToElapse time2)
Computes whether two elapsed times are the same for project management purposes. |
private static boolean |
sameLong(long t1,
long t2)
|
static boolean |
sameTime(Timestamp time1,
Timestamp time2)
Computes whether two dates are equal for project management purposes. |
static boolean |
sameWork(Work work1,
Work work2)
Returns whether two work objects are equal. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final long TIME_UNIT
public static final long END_OF_DAY
public static final ProjMonitorService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final long timeUnit
private static final double WORK_PRECISION
private static final long MILLIS_IN_HOUR
private static final long MILLIS_IN_MINUTE
private static final boolean VERBOSE
Constructor Detail |
public ProjMonitorHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ProjMonitorHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static boolean sameTime(Timestamp time1, Timestamp time2)
time1
- time2
-
public static boolean afterTime(Timestamp time1, Timestamp time2)
time1
- time2
-
public static boolean sameElapsedTime(TimeToElapse time1, TimeToElapse time2)
time1
- time2
-
public static boolean sameWork(Work work1, Work work2)
work1
- work2
-
Work
public static boolean sameCurrency(Currency curr1, Currency curr2)
curr1
- curr2
-
wt.projmgmt.resource.Cost
public static Timestamp getDeadlineTime(Timestamp time)
time
-
private static boolean sameLong(long t1, long t2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |