|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.monitor.MonitorInfo
The MonitorInfo
class represents dynamic project information
that results from the project execution. This information includes the
health status, the percent complete and the estimated finish date. Other
attributes indicate whether these values were expliclty set or not.
Use the newMonitorInfo
static factory method(s), not the
MonitorInfo
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
wt.projmgmt.admin.ProjectStatus
,
wt.projmgmt.execution.ExeutionObject
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static String |
CURRENT_WORK_COST
Label for the attribute. |
private Currency |
currentWorkCost
|
static String |
EXEC_STATUS
Label for the attribute; Health status. |
private static int |
EXEC_STATUS_UPPER_LIMIT
|
private ProjectHealthStatus |
execStatus
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FINISH_DATE
Label for the attribute; Timestamp representing the estimated finish date. |
private Timestamp |
finishDate
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static int |
PERCENT_PRECISION
|
static String |
PERFORMED_WORK
Label for the attribute; Integer between -1 and 100 rerpesenting the percent complete of an execution object. |
private Work |
performedWork
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
TOTAL_WORK
Label for the attribute; Total work. |
static String |
TOTAL_WORK_COST
Label for the attribute. |
private Work |
totalWork
|
private Currency |
totalWorkCost
|
private static boolean |
VERBOSE
|
Constructor Summary | |
MonitorInfo()
|
Method Summary | |
boolean |
equals(Object object)
Determines if the object is equal to the one passed as argument. |
private boolean |
equals(Object obj1,
Object obj2)
Checks for equality when one or both of the objects might be null. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
Currency |
getCurrentWorkCost()
Gets the value of the attribute: CURRENT_WORK_COST. |
ProjectHealthStatus |
getExecStatus()
Gets the value of the attribute: EXEC_STATUS. |
Timestamp |
getFinishDate()
Gets the value of the attribute: FINISH_DATE. |
int |
getPercentComplete()
Supported API: false |
Work |
getPerformedWork()
Gets the value of the attribute: PERFORMED_WORK. |
Work |
getTotalWork()
Gets the value of the attribute: TOTAL_WORK. |
Currency |
getTotalWorkCost()
Gets the value of the attribute: TOTAL_WORK_COST. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(ExecutionObject exec_obj)
Supports initialization, following construction of an instance. |
static MonitorInfo |
newMonitorInfo()
No arg constructor. |
static MonitorInfo |
newMonitorInfo(ExecutionObject exec_obj)
Constructor taking as arguments a project management object. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
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(MonitorInfo thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private int |
round(double percent)
Rounds percentages avoiding floating point errors. |
void |
setCurrentWorkCost(Currency a_CurrentWorkCost)
Sets the value of the attribute: CURRENT_WORK_COST. |
void |
setExecStatus(ProjectHealthStatus a_ExecStatus)
Sets the value of the attribute: EXEC_STATUS. |
void |
setFinishDate(Timestamp a_FinishDate)
Sets the value of the attribute: FINISH_DATE. |
void |
setPercentComplete(double percent)
Supported API: false |
void |
setPerformedWork(Work a_PerformedWork)
Sets the value of the attribute: PERFORMED_WORK. |
ExecutionObject |
setToObject(ExecutionObject exec_obj)
Sets the explicitly set values in the monitor info object to the corresponding values in the execution object passed as argument. |
void |
setTotalWork(Work a_TotalWork)
Sets the value of the attribute: TOTAL_WORK. |
void |
setTotalWorkCost(Currency a_TotalWorkCost)
Sets the value of the attribute: TOTAL_WORK_COST. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String EXEC_STATUS
ExecutionObject
,
Constant Field Valuesprivate static int EXEC_STATUS_UPPER_LIMIT
private ProjectHealthStatus execStatus
public static final String FINISH_DATE
ExecutionObject
,
Constant Field Valuesprivate Timestamp finishDate
public static final String PERFORMED_WORK
ExecutionObject
,
Constant Field Valuesprivate Work performedWork
public static final String TOTAL_WORK
private Work totalWork
public static final String TOTAL_WORK_COST
private Currency totalWorkCost
public static final String CURRENT_WORK_COST
private Currency currentWorkCost
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
private static final int PERCENT_PRECISION
Constructor Detail |
public MonitorInfo()
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(MonitorInfo 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 void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public ProjectHealthStatus getExecStatus()
ExecutionObject
public void setExecStatus(ProjectHealthStatus a_ExecStatus)
a_ExecStatus
- ExecutionObject
public Timestamp getFinishDate()
ExecutionObject
public void setFinishDate(Timestamp a_FinishDate)
a_FinishDate
- ExecutionObject
public Work getPerformedWork()
ExecutionObject
public void setPerformedWork(Work a_PerformedWork)
a_PerformedWork
- ExecutionObject
public Work getTotalWork()
public void setTotalWork(Work a_TotalWork)
a_TotalWork
- public Currency getTotalWorkCost()
public void setTotalWorkCost(Currency a_TotalWorkCost)
a_TotalWorkCost
- public Currency getCurrentWorkCost()
public void setCurrentWorkCost(Currency a_CurrentWorkCost)
a_CurrentWorkCost
- public static MonitorInfo newMonitorInfo(ExecutionObject exec_obj) throws WTException
ExecutionObject
.
The argument object may or may not be a resource holder ResourceHolder
.
exec_obj
-
WTException
protected void initialize(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static MonitorInfo newMonitorInfo() throws WTException
WTException
protected void initialize() throws WTException
WTException
public ExecutionObject setToObject(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public boolean equals(Object object)
object
-
public int getPercentComplete()
public void setPercentComplete(double percent)
percent
- private boolean equals(Object obj1, Object obj2)
private int round(double percent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |