com.ibm.ram.common.data
Class PersonTime

java.lang.Object
  extended by com.ibm.ram.common.data.PersonTime
Direct Known Subclasses:
RAMPersonTime

public class PersonTime
extends java.lang.Object

Represents the estimates for the creation and usage of an asset. This class has two parts: amount and units. To specify the unit, use one of these constants: UNIT_PERSON_HOURS, UNIT_PERSON_DAYS, UNIT_PERSON_MONTHS, or UNIT_PERSON_YEARS.

Since:
7.1

Field Summary
static java.lang.String UNIT_PERSON_DAYS
          Measure of person time in hours
static java.lang.String UNIT_PERSON_HOURS
          Measure of person time in hours
static java.lang.String UNIT_PERSON_MONTHS
          Measure of person time in hours
static java.lang.String UNIT_PERSON_YEARS
          Measure of person time in hours
 
Constructor Summary
PersonTime()
           
 
Method Summary
 double getAmount()
          The amount of the given unit of measurement
 java.lang.String getUnit()
          The Unit of measurement UNIT_PERSON_HOURS UNIT_PERSON_DAYS UNIT_PERSON_MONTHS UNIT_PERSON_YEARS
 void setAmount(double amount)
           
 void setUnit(java.lang.String unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIT_PERSON_HOURS

public static final java.lang.String UNIT_PERSON_HOURS
Measure of person time in hours


UNIT_PERSON_DAYS

public static final java.lang.String UNIT_PERSON_DAYS
Measure of person time in hours


UNIT_PERSON_MONTHS

public static final java.lang.String UNIT_PERSON_MONTHS
Measure of person time in hours


UNIT_PERSON_YEARS

public static final java.lang.String UNIT_PERSON_YEARS
Measure of person time in hours

Constructor Detail

PersonTime

public PersonTime()
Method Detail

getAmount

public double getAmount()
The amount of the given unit of measurement

Returns:
the amount
Since:
7.1

getUnit

public java.lang.String getUnit()
The Unit of measurement UNIT_PERSON_HOURS UNIT_PERSON_DAYS UNIT_PERSON_MONTHS UNIT_PERSON_YEARS

Returns:
the unit
Since:
7.1

setAmount

public void setAmount(double amount)
Parameters:
amount -
Since:
7.1

setUnit

public void setUnit(java.lang.String unit)
Parameters:
unit -
Since:
7.1