|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.resource.Work
Work
encapsulates project management effort for .
It indicates how much time a certain task has consumed or is planned
or budgeted to consume.
Work is implemented simply as a double. Also the default time unit
is an "hour."
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static double |
PRECISION
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private double |
value
|
private static boolean |
VERBOSE
|
Constructor Summary | |
Work()
Supported API: false |
|
Work(double value)
Supported API: false |
Method Summary | |
Work |
copy()
returns an identical Work object. |
double |
doubleValue()
Returns the internal representtaion of the Work iobject. |
boolean |
equals(Object object)
Returns true if two work objects are considered equal and false otherwise. |
static Work |
getWorkInDays(String str)
Returns a Work given a string. |
static Work |
getWorkInHours(String str)
Returns a Work given a string. |
int |
hashCode()
Work hashCode. |
static double |
parseWork(String str)
Helper function that parses a String into a Work
object. |
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(Work thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
String |
toString()
Produces string representation of the object. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private double value
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final double PRECISION
private static final boolean VERBOSE
Constructor Detail |
public Work()
public Work(double value)
value
- 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(Work 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 String toString()
public boolean equals(Object object)
object
-
public int hashCode()
public Work copy()
public double doubleValue()
public static double parseWork(String str) throws NumberFormatException
String
into a Work
object. Cleans string of extraneous characters and passes it to the
wt.lang.Double#parseDouble
method.
str
-
NumberFormatException
public static Work getWorkInDays(String str) throws NumberFormatException
Work
given a string. The String
passed as argument is assumed to contain a double number representing
the work in "days"
str
-
NumberFormatException
public static Work getWorkInHours(String str)
Work
given a string. The String
passed as argument is assumed to contain a double number representing
the work in "hours"
str
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |