public interface IlvPropertyHolderActivity extends IlvActivity, IlvUserPropertyHolder
IlvPropertyHolderActivity
denotes an activity which
has a number of specific time points. In a simple activity, the specific
time points are the start time and end time. In an instance of
IlvPropertyHolderActivity
, additional dates can be defined; the
start time and end time are then computed as the minimum and maximum
among the specified times, respectively.
This interface can be used to model activities that are partially completed, or activities that have one or more interruptions.
Modifier and Type | Field and Description |
---|---|
static String |
END_TIME_PROPERTY
Identifies the activity's end time property.
|
static String |
START_TIME_PROPERTY
Identifies the activity's start time property.
|
static String |
TIME_PROPERTIES_PROPERTY
Identifies the activity's "time properties" property.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getTimeProperties()
Returns the names of the properties that denote the specific time points
of this activity.
|
void |
setTimeProperties(String[] timeProperties)
Changes the set of properties that are the specific time points of this activity and
from which the start time and the end time are computed.
|
getChildEventFilter, getEndTime, getID, getName, getStartTime, getTimeInterval, processChildEvent, setEndTime, setGanttModelImpl, setID, setName, setStartTime, setTimeInterval, setTimeInterval
getProperty, isUserProperty, propertyNameIterator, setProperty
static final String START_TIME_PROPERTY
static final String END_TIME_PROPERTY
static final String TIME_PROPERTIES_PROPERTY
String[] getTimeProperties()
If this method returns a non-null
array, it is an array of
property names. Each of the property names can be used with
IlvUserPropertyHolder.getProperty(String)
and
IlvUserPropertyHolder.setProperty(String, Object)
and is different
from START_TIME_PROPERTY
and END_TIME_PROPERTY
. Each of
the properties have values which are instances of
java.util.Date
.
The methods IlvActivity.getStartTime()
and
IlvActivity.getEndTime()
are then implemented as being the minimum
and the maximum among the values of the specified properties.
If this method returns null
, the only specific time points
of this activity are the start and end date, as implemented by the methods
IlvActivity.getStartTime()
and IlvActivity.getEndTime()
.
null
.void setTimeProperties(String[] timeProperties)
timeProperties
- A nonempty set of properties whose values are always of type
Date
, excluding START_TIME_PROPERTY
and END_TIME_PROPERTY
, or null
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.