Class TaskBaseline
- java.lang.Object
-
- com.aspose.tasks.Baseline
-
- com.aspose.tasks.TaskBaseline
-
- All Implemented Interfaces:
com.aspose.ms.System.IEquatable<Baseline>
,Comparable<Baseline>
public class TaskBaseline extends Baseline implements Comparable<Baseline>
Represents Baseline of a Task.
-
-
Constructor Summary
Constructors Constructor Description TaskBaseline(Task task)
Initializes a new instance of theTaskBaseline
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TaskBaseline other)
IComparable interface implementation.boolean
equals(TaskBaseline other)
Returns a value indicating whether this instance is equal to the specified TaskBaseline object.boolean
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.Duration
getDuration()
Gets the scheduled duration of the task when the baseline was saved.int
getDurationFormat()
Gets the format for expressing the duration of the task baseline.boolean
getEstimatedDuration()
Gets a value indicating whether the baseline duration of the task was estimated.Date
getFinish()
Gets the scheduled finish date of the task when the baseline was saved.double
getFixedCost()
Gets a fixed cost of the task when the baseline was saved.boolean
getInterim()
Gets a value indicating whether this is an Interim Baseline.Date
getStart()
Gets the scheduled start date of the task when the baseline was saved.TimephasedDataCollection
getTimephasedData()
Gets a TimephasedDataCollection instance for this object.int
hashCode()
Returns a hash code value for the instance of theTaskBaseline
class.void
setDuration(Duration value)
Sets the scheduled duration of the task when the baseline was saved.void
setDurationFormat(int value)
Sets the format for expressing the duration of the task baseline.void
setEstimatedDuration(boolean value)
Sets a value indicating whether the baseline duration of the task was estimated.void
setFinish(Date value)
Sets the scheduled finish date of the task when the baseline was saved.void
setFixedCost(double value)
Sets a fixed cost of the task when the baseline was saved.void
setInterim(boolean value)
Sets a value indicating whether this is an Interim Baseline.void
setStart(Date value)
Sets the scheduled start date of the task when the baseline was saved.void
setTimephasedData(TimephasedDataCollection value)
Sets a TimephasedDataCollection instance for this object.-
Methods inherited from class com.aspose.tasks.Baseline
compareTo, equals, getBaselineNumber, getBcwp, getBcws, getCost, getWork, op_Equality, op_GreaterThan, op_GreaterThanOrEqual, op_Inequality, op_LessThan, op_LessThanOrEqual, setBaselineNumber, setBcwp, setBcws, setCost, setWork
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
TaskBaseline
public TaskBaseline(Task task)
Initializes a new instance of the
TaskBaseline
class.- Parameters:
task
- Baseline's parent task.
-
-
Method Detail
-
compareTo
public final int compareTo(TaskBaseline other)
IComparable interface implementation. Compares this instance to the specified Baseline object.
- Parameters:
other
- the specified Baseline object to compare this instance to.- Returns:
- 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
public final boolean equals(TaskBaseline other)
Returns a value indicating whether this instance is equal to the specified TaskBaseline object.
- Parameters:
other
- the specified AssignmentBaseline object to compare with this instance.- Returns:
- returns true if this instance is equal to the specified TaskBaseline object; otherwise, false.
-
equals
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
-
getDuration
public final Duration getDuration()
Gets the scheduled duration of the task when the baseline was saved.
- Returns:
- the scheduled duration of the task when the baseline was saved.
-
setDuration
public final void setDuration(Duration value)
Sets the scheduled duration of the task when the baseline was saved.
- Parameters:
value
- the scheduled duration of the task when the baseline was saved.
-
getDurationFormat
public final int getDurationFormat()
Gets the format for expressing the duration of the task baseline.
- Returns:
- the format for expressing the duration of the task baseline.
-
setDurationFormat
public final void setDurationFormat(int value)
Sets the format for expressing the duration of the task baseline.
- Parameters:
value
- the format for expressing the duration of the task baseline.
-
getEstimatedDuration
public final boolean getEstimatedDuration()
Gets a value indicating whether the baseline duration of the task was estimated.
- Returns:
- a value indicating whether the baseline duration of the task was estimated.
-
setEstimatedDuration
public final void setEstimatedDuration(boolean value)
Sets a value indicating whether the baseline duration of the task was estimated.
- Parameters:
value
- 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:
- the scheduled finish date of the task when the baseline was saved.
-
setFinish
public final void setFinish(Date value)
Sets the scheduled finish date of the task when the baseline was saved.
- Parameters:
value
- 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:
- a fixed cost of the task when the baseline was saved.
-
setFixedCost
public final void setFixedCost(double value)
Sets a fixed cost of the task when the baseline was saved.
- Parameters:
value
- 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:
- a value indicating whether this is an Interim Baseline.
-
setInterim
public final void setInterim(boolean value)
Sets a value indicating whether this is an Interim Baseline.
- Parameters:
value
- 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:
- the scheduled start date of the task when the baseline was saved.
-
setStart
public final void setStart(Date value)
Sets the scheduled start date of the task when the baseline was saved.
- Parameters:
value
- 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:
- a TimephasedDataCollection instance for this object.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets a TimephasedDataCollection instance for this object. The time phased data associated with the task baseline.
- Parameters:
value
- a TimephasedDataCollection instance for this object.
-
hashCode
public int hashCode()
Returns a hash code value for the instance of the
TaskBaseline
class.
-
-