TaskBaseline

Inheritance: java.lang.Object, com.aspose.tasks.Baseline

All Implemented Interfaces: java.lang.Comparable

public class TaskBaseline extends Baseline implements Comparable<Baseline>

Represents Baseline of a Task.

Constructors

ConstructorDescription
TaskBaseline(Task task)Initializes a new instance of the TaskBaseline class.

Methods

MethodDescription
compareTo(TaskBaseline other)IComparable interface implementation.
equals(TaskBaseline other)Returns a value indicating whether this instance is equal to the specified TaskBaseline object.
equals(Object obj)Returns a value indicating whether this instance is equal to a specified object.
getDuration()Gets the scheduled duration of the task when the baseline was saved.
getEstimatedDuration()Gets a value indicating whether the baseline duration of the task was estimated.
getFinish()Gets the scheduled finish date of the task when the baseline was saved.
getFixedCost()Gets a fixed cost of the task when the baseline was saved.
getInterim()Gets a value indicating whether this is an Interim Baseline.
getStart()Gets the scheduled start date of the task when the baseline was saved.
getTimephasedData()Gets a TimephasedDataCollection instance for this object.
hashCode()Returns a hash code value for the instance of the TaskBaseline class.
setDuration(Duration value)Sets the scheduled duration of the task when the baseline was saved.
setEstimatedDuration(boolean value)Sets a value indicating whether the baseline duration of the task was estimated.
setFinish(Date value)Sets the scheduled finish date of the task when the baseline was saved.
setFixedCost(double value)Sets a fixed cost of the task when the baseline was saved.
setInterim(boolean value)Sets a value indicating whether this is an Interim Baseline.
setStart(Date value)Sets the scheduled start date of the task when the baseline was saved.
setTimephasedData(TimephasedDataCollection value)Sets a TimephasedDataCollection instance for this object.

TaskBaseline(Task task)

public TaskBaseline(Task task)

Initializes a new instance of the TaskBaseline class.

Parameters:

ParameterTypeDescription
taskTaskBaseline’s parent task.

compareTo(TaskBaseline other)

public final int compareTo(TaskBaseline other)

IComparable interface implementation. Compares this instance to the specified Baseline object.

Parameters:

ParameterTypeDescription
otherTaskBaselinethe specified Baseline object to compare this instance to.

Returns: int - returns -1 if this instance is less than the specified object, 1 if this instance is greater than the specified object; otherwise returns 0

equals(TaskBaseline other)

public final boolean equals(TaskBaseline other)

Returns a value indicating whether this instance is equal to the specified TaskBaseline object.

Parameters:

ParameterTypeDescription
otherTaskBaselinethe specified AssignmentBaseline object to compare with this instance.

Returns: boolean - returns true if this instance is equal to the specified TaskBaseline object; otherwise, false.

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to compare with this instance.

Returns: boolean - True if the specified object is a TaskBaseline that has the same UID value as this instance; otherwise, false.

getDuration()

public final Duration getDuration()

Gets the scheduled duration of the task when the baseline was saved.

Returns: Duration - the scheduled duration of the task when the baseline was saved.

getEstimatedDuration()

public final boolean getEstimatedDuration()

Gets a value indicating whether the baseline duration of the task was estimated.

Returns: boolean - a value indicating whether the baseline duration of the task was estimated.

getFinish()

public final Date getFinish()

Gets the scheduled finish date of the task when the baseline was saved.

Returns: java.util.Date - the scheduled finish date of the task when the baseline was saved.

getFixedCost()

public final double getFixedCost()

Gets a fixed cost of the task when the baseline was saved.

Returns: double - a fixed cost of the task when the baseline was saved.

getInterim()

public final boolean getInterim()

Gets a value indicating whether this is an Interim Baseline.

Returns: boolean - a value indicating whether this is an Interim Baseline.

getStart()

public final Date getStart()

Gets the scheduled start date of the task when the baseline was saved.

Returns: java.util.Date - the scheduled start date of the task when the baseline was saved.

getTimephasedData()

public final TimephasedDataCollection getTimephasedData()

Gets a TimephasedDataCollection instance for this object. The time phased data associated with the task baseline.

Returns: TimephasedDataCollection - a TimephasedDataCollection instance for this object.

hashCode()

public int hashCode()

Returns a hash code value for the instance of the TaskBaseline class.

Returns: int - returns a hash code value for this object.

setDuration(Duration value)

public final void setDuration(Duration value)

Sets the scheduled duration of the task when the baseline was saved.

Parameters:

ParameterTypeDescription
valueDurationthe scheduled duration of the task when the baseline was saved.

setEstimatedDuration(boolean value)

public final void setEstimatedDuration(boolean value)

Sets a value indicating whether the baseline duration of the task was estimated.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether the baseline duration of the task was estimated.

setFinish(Date value)

public final void setFinish(Date value)

Sets the scheduled finish date of the task when the baseline was saved.

Parameters:

ParameterTypeDescription
valuejava.util.Datethe scheduled finish date of the task when the baseline was saved.

setFixedCost(double value)

public final void setFixedCost(double value)

Sets a fixed cost of the task when the baseline was saved.

Parameters:

ParameterTypeDescription
valuedoublea fixed cost of the task when the baseline was saved.

setInterim(boolean value)

public final void setInterim(boolean value)

Sets a value indicating whether this is an Interim Baseline.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether this is an Interim Baseline.

setStart(Date value)

public final void setStart(Date value)

Sets the scheduled start date of the task when the baseline was saved.

Parameters:

ParameterTypeDescription
valuejava.util.Datethe scheduled start date of the task when the baseline was saved.

setTimephasedData(TimephasedDataCollection value)

public final void setTimephasedData(TimephasedDataCollection value)

Sets a TimephasedDataCollection instance for this object. The time phased data associated with the task baseline.

Parameters:

ParameterTypeDescription
valueTimephasedDataCollectiona TimephasedDataCollection instance for this object.