Class: TimeIntervalCollectionProperty

TimeIntervalCollectionProperty

new TimeIntervalCollectionProperty()

The {@ link attribute} defined by TimeIntervalCollection, where each data attribute of each TimeInterval represents a time value.

Example
//Create a Cartesian2 interval property which contains data on August 1st, 2012
//and uses a different value every 6 hours.
var composite = new SuperMap3D.TimeIntervalCollectionProperty();
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T06:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new SuperMap3D.Cartesian2(2.0, 3.4)
}));
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T06:00:00.00Z/2012-08-01T12:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new SuperMap3D.Cartesian2(12.0, 2.7)
}));
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T12:00:00.00Z/2012-08-01T18:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new SuperMap3D.Cartesian2(5.0, 12.4)
}));
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T18:00:00.00Z/2012-08-02T00:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : true,
    data : new SuperMap3D.Cartesian2(85.0, 4.1)
}));

Members

readonly definitionChangedEvent

Get events. When the property definition changes, or when the setValue method assigns a property value different from the current one, this event is thrown.

intervalsTimeIntervalCollection

Retrieve the set of time intervals.

readonly isConstantBoolean

Get a value indicating whether the attribute is a constant. If getValue always returns the same result in the current definition, then the property is considered a constant.

Methods

equals(other){Boolean}

Compare this attribute with the provided attribute, return true if they are equal, otherwise return false.

Name Type Description
other Property optional

A property value.

Returns:
Type Description
Boolean If left and right are equal, it is true; otherwise, it is false.

getValue(time, result){Object}

Retrieve the attribute value for the specified time.

Name Type Description
time JulianDate

The time to retrieve the attribute value.

result Object optional

If the object to store attribute values is omitted, a new instance will be created and returned.

Returns:
Type Description
Object The modified result parameters, or a new instance (if no result parameters are provided).