| Package | Description |
|---|---|
| net.sf.mpxj | |
| net.sf.mpxj.junit | |
| net.sf.mpxj.mpd | |
| net.sf.mpxj.mspdi | |
| net.sf.mpxj.utility |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
ProjectHeader.getDefaultDurationUnits()
Gets Default Duration units.
|
TimeUnit |
ProjectHeader.getDefaultWorkUnits()
Default work units.
|
static TimeUnit |
TimeUnit.getInstance(int type)
Retrieve an instance of the enum based on its int value.
|
static TimeUnit |
TimeUnit.getInstance(Number type)
Retrieve an instance of the enum based on its int value.
|
TimeUnit |
Task.getLevelingDelayFormat()
Retrieve the leveling delay format.
|
TimeUnit |
CostRateTableEntry.getOvertimeRateFormat()
Retrieves the format used when displaying the overtime rate.
|
TimeUnit |
Resource.getOvertimeRateUnits()
Retrieves the format of the overtime rate.
|
TimeUnit |
CostRateTableEntry.getStandardRateFormat()
Retrieves the format used when displaying the standard rate.
|
TimeUnit |
Resource.getStandardRateUnits()
Retrieves the format of the standard rate.
|
TimeUnit |
Rate.getUnits()
Accessor method to retrieve the time units.
|
TimeUnit |
Duration.getUnits()
This method is used to retrieve the type of units the duration
is expressed in.
|
TimeUnit |
ResourceAssignment.getVariableRateUnits()
Retrieve the variable rate time units, null if fixed rate.
|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
Duration.convertUnits(double duration,
TimeUnit fromUnits,
TimeUnit toUnits,
double minutesPerDay,
double minutesPerWeek,
double daysPerMonth)
This method provides an approximate conversion between duration
units.
|
static Duration |
Duration.convertUnits(double duration,
TimeUnit fromUnits,
TimeUnit toUnits,
ProjectHeader defaults)
This method provides an approximate conversion between duration
units.
|
Duration |
Duration.convertUnits(TimeUnit type,
ProjectHeader defaults)
This method provides an approximate conversion between duration
units.
|
static Duration |
Duration.getInstance(double duration,
TimeUnit type)
Retrieve an Duration instance.
|
static Duration |
Duration.getInstance(int duration,
TimeUnit type)
Retrieve an Duration instance.
|
Duration |
ProjectCalendar.getWork(Date startDate,
Date endDate,
TimeUnit format)
This method retrieves a Duration instance representing the amount of
work between two dates based on this calendar.
|
Duration |
ProjectCalendar.getWork(Date date,
TimeUnit format)
Retrieves the amount of work on a given day, and
returns it in the specified format.
|
void |
ProjectHeader.setDefaultDurationUnits(TimeUnit units)
Default duration units.
|
void |
ProjectHeader.setDefaultWorkUnits(TimeUnit units)
Default work units.
|
void |
Task.setLevelingDelayFormat(TimeUnit levelingDelayFormat)
Set the leveling delay format.
|
void |
Resource.setOvertimeRateUnits(TimeUnit units)
Sets the format of the overtime rate.
|
void |
Resource.setStandardRateUnits(TimeUnit units)
Sets the format of the standard rate.
|
void |
ResourceAssignment.setVariableRateUnits(TimeUnit variableRateUnits)
Set the variable rate time units, null if fixed rate.
|
| Constructor and Description |
|---|
CostRateTableEntry(Rate standardRate,
TimeUnit standardRateFormat,
Rate overtimeRate,
TimeUnit overtimeRateFormat,
Number costPerUse,
Date endDate)
Constructor.
|
Rate(double amount,
TimeUnit time)
This constructor builds an instance of this class from a currency
amount and a time unit.
|
Rate(Number amount,
TimeUnit time)
This constructor builds an instance of this class from a currency
amount and a time unit.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MPXJTestCase.assertEquals(double expectedDuration,
TimeUnit expectedUnits,
Duration duration)
Assert method used to test durations.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeUnit |
MPDUtility.getDurationTimeUnits(int type)
This method converts between the duration units representation
used in the MPP file, and the standard MPX duration units.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
MPDUtility.getAdjustedDuration(ProjectFile file,
int duration,
TimeUnit timeUnit)
Given a duration and the time units for the duration extracted from an MPP
file, this method creates a new Duration to represent the given
duration.
|
static Duration |
MPDUtility.getDuration(double value,
TimeUnit type)
Reads a duration value.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeUnit |
DatatypeConverter.parseDurationTimeUnits(BigInteger value)
Parse duration time units.
|
static TimeUnit |
DatatypeConverter.parseTimeUnit(Number value)
Parse time unit.
|
static TimeUnit |
DatatypeConverter.parseWorkUnits(BigInteger value)
Parse work units.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DatatypeConverter.parseDuration(ProjectFile file,
TimeUnit defaultUnits,
String value)
Parse a duration.
|
static Duration |
DatatypeConverter.parseDurationInTenthsOfMinutes(ProjectHeader header,
Number value,
TimeUnit targetTimeUnit)
Parse duration represented as tenths of minutes.
|
static Duration |
DatatypeConverter.parseDurationInThousanthsOfMinutes(ProjectHeader header,
Number value,
TimeUnit targetTimeUnit)
Parse duration represented in thousandths of minutes.
|
static BigInteger |
DatatypeConverter.printDurationTimeUnits(TimeUnit value,
boolean estimated)
Print duration time units.
|
static BigInteger |
DatatypeConverter.printTimeUnit(TimeUnit value)
Print time unit.
|
static BigInteger |
DatatypeConverter.printWorkUnits(TimeUnit value)
Print work units.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DateUtility.getVariance(Task task,
Date date1,
Date date2,
TimeUnit format)
This utility method calculates the difference in working
time between two dates, given the context of a task.
|
Copyright © 2013. All Rights Reserved.