net.sf.mpxj
Class CostRateTableEntry

java.lang.Object
  extended by net.sf.mpxj.CostRateTableEntry
All Implemented Interfaces:
Comparable<CostRateTableEntry>

public class CostRateTableEntry
extends Object
implements Comparable<CostRateTableEntry>

This class represents a row from a resource's cost rate table. Note that MS Project always represents costs as an hourly rate, it holds an additional field to indicate the format used when displaying the rate.


Field Summary
static CostRateTableEntry DEFAULT_ENTRY
           
 
Constructor Summary
CostRateTableEntry(Rate standardRate, TimeUnit standardRateFormat, Rate overtimeRate, TimeUnit overtimeRateFormat, Number costPerUse, Date endDate)
          Constructor.
 
Method Summary
 int compareTo(CostRateTableEntry o)
          
 Number getCostPerUse()
          Retrieves the cost per use represented by this entry.
 Date getEndDate()
          Retrieves the end date after which this table entry is not valid.
 Rate getOvertimeRate()
          Retrieves the overtime rate represented by this entry.
 TimeUnit getOvertimeRateFormat()
          Retrieves the format used when displaying the overtime rate.
 Rate getStandardRate()
          Retrieves the standard rate represented by this entry.
 TimeUnit getStandardRateFormat()
          Retrieves the format used when displaying the standard rate.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ENTRY

public static final CostRateTableEntry DEFAULT_ENTRY
Constructor Detail

CostRateTableEntry

public CostRateTableEntry(Rate standardRate,
                          TimeUnit standardRateFormat,
                          Rate overtimeRate,
                          TimeUnit overtimeRateFormat,
                          Number costPerUse,
                          Date endDate)
Constructor.

Parameters:
standardRate - standard rate
standardRateFormat - standard rate format
overtimeRate - overtime rate
overtimeRateFormat - overtime rate format
costPerUse - cost per use
endDate - end date
Method Detail

getEndDate

public Date getEndDate()
Retrieves the end date after which this table entry is not valid.

Returns:
end date

getStandardRate

public Rate getStandardRate()
Retrieves the standard rate represented by this entry.

Returns:
standard rate

getStandardRateFormat

public TimeUnit getStandardRateFormat()
Retrieves the format used when displaying the standard rate.

Returns:
standard rate format

getOvertimeRate

public Rate getOvertimeRate()
Retrieves the overtime rate represented by this entry.

Returns:
overtime rate

getOvertimeRateFormat

public TimeUnit getOvertimeRateFormat()
Retrieves the format used when displaying the overtime rate.

Returns:
overtime rate format

getCostPerUse

public Number getCostPerUse()
Retrieves the cost per use represented by this entry.

Returns:
per use rate

compareTo

public int compareTo(CostRateTableEntry o)

Specified by:
compareTo in interface Comparable<CostRateTableEntry>

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.