Class Rate
- java.lang.Object
-
- com.aspose.tasks.Rate
-
public class Rate extends Object
Represents a definition of a time period and rates applicable for a resource during that period.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
getCostPerUse()
Gets the cost per use of a resource.BigDecimal
getOvertimeRate()
Gets the overtime rate per hour for a resource.int
getOvertimeRateFormat()
Gets the units used by Microsoft Project to display the overtime rate.Date
getRatesFrom()
Gets the date when a rate becomes effective.Date
getRatesTo()
Gets the last date when a rate is effective.int
getRateTable()
Gets the unique identifier of a rate table for a resource.BigDecimal
getStandardRate()
Gets the standard rate per hour for a resource.int
getStandardRateFormat()
Gets the units used by Microsoft Project to display the standard rate.void
setCostPerUse(BigDecimal value)
Sets the cost per use of a resource.void
setOvertimeRate(BigDecimal value)
Sets the overtime rate per hour for a resource.void
setOvertimeRateFormat(int value)
Sets the units used by Microsoft Project to display the overtime rate.void
setRatesFrom(Date value)
Sets the date when a rate becomes effective.void
setRatesTo(Date value)
Sets the last date when a rate is effective.void
setRateTable(int value)
Sets the unique identifier of a rate table for a resource.void
setStandardRate(BigDecimal value)
Sets the standard rate per hour for a resource.void
setStandardRateFormat(int value)
Sets the units used by Microsoft Project to display the standard rate.
-
-
-
Method Detail
-
getCostPerUse
public final BigDecimal getCostPerUse()
Gets the cost per use of a resource. This value retrieved from the current date if a rate table exists for a resource.
- Returns:
- the cost per use of a resource.
-
setCostPerUse
public final void setCostPerUse(BigDecimal value)
Sets the cost per use of a resource. This value retrieved from the current date if a rate table exists for a resource.
- Parameters:
value
- the cost per use of a resource.
-
getOvertimeRate
public final BigDecimal getOvertimeRate()
Gets the overtime rate per hour for a resource.
- Returns:
- the overtime rate per hour for a resource.
-
setOvertimeRate
public final void setOvertimeRate(BigDecimal value)
Sets the overtime rate per hour for a resource.
- Parameters:
value
- the overtime rate per hour for a resource.
-
getOvertimeRateFormat
public final int getOvertimeRateFormat()
Gets the units used by Microsoft Project to display the overtime rate.
- Returns:
- the units used by Microsoft Project to display the overtime rate.
-
setOvertimeRateFormat
public final void setOvertimeRateFormat(int value)
Sets the units used by Microsoft Project to display the overtime rate.
- Parameters:
value
- the units used by Microsoft Project to display the overtime rate.
-
getRateTable
public final int getRateTable()
Gets the unique identifier of a rate table for a resource.
- Returns:
- the unique identifier of a rate table for a resource.
-
setRateTable
public final void setRateTable(int value)
Sets the unique identifier of a rate table for a resource.
- Parameters:
value
- the unique identifier of a rate table for a resource.
-
getRatesFrom
public final Date getRatesFrom()
Gets the date when a rate becomes effective.
- Returns:
- the date when a rate becomes effective.
-
setRatesFrom
public final void setRatesFrom(Date value)
Sets the date when a rate becomes effective.
- Parameters:
value
- the date when a rate becomes effective.
-
getRatesTo
public final Date getRatesTo()
Gets the last date when a rate is effective.
- Returns:
- the last date when a rate is effective.
-
setRatesTo
public final void setRatesTo(Date value)
Sets the last date when a rate is effective.
- Parameters:
value
- the last date when a rate is effective.
-
getStandardRate
public final BigDecimal getStandardRate()
Gets the standard rate per hour for a resource.
- Returns:
- the standard rate per hour for a resource.
-
setStandardRate
public final void setStandardRate(BigDecimal value)
Sets the standard rate per hour for a resource.
- Parameters:
value
- the standard rate per hour for a resource.
-
getStandardRateFormat
public final int getStandardRateFormat()
Gets the units used by Microsoft Project to display the standard rate.
- Returns:
- the units used by Microsoft Project to display the standard rate.
-
setStandardRateFormat
public final void setStandardRateFormat(int value)
Sets the units used by Microsoft Project to display the standard rate.
- Parameters:
value
- the units used by Microsoft Project to display the standard rate.
-
-