TimeIntervalCollectionProperty

aProperty由aTimeIntervalCollection定义,其中每个TimeInterval的数据属性表示当时的值。
new TimeIntervalCollectionProperty()
Example
//Create a Cartesian2 interval property which contains data on August 1st, 2012
//and uses a different value every 6 hours.
var composite = new bmgl.TimeIntervalCollectionProperty();
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T06:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new bmgl.Cartesian2(2.0, 3.4)
}));
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T06:00:00.00Z/2012-08-01T12:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new bmgl.Cartesian2(12.0, 2.7)
}));
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T12:00:00.00Z/2012-08-01T18:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : false,
    data : new bmgl.Cartesian2(5.0, 12.4)
}));
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T18:00:00.00Z/2012-08-02T00:00:00.00Z',
    isStartIncluded : true,
    isStopIncluded : true,
    data : new bmgl.Cartesian2(85.0, 4.1)
}));

Members

(readonly) definitionChanged : Event

获取每当此属性的定义更改时引发的事件。每当使用与当前值不同的数据调用setvalue时,定义就会更改。

intervals : TimeIntervalCollection

获取间隔集合。

(readonly) isConstant : Boolean

获取一个值,该值指示此属性是否为常量。如果getValue总是为当前定义返回相同的结果,则将属性视为常量。

Methods

equals(other) → {Boolean}
将此属性与提供的属性进行比较,如果相等,则返回true,否则返回false
Parameters:
other (Property) 其他财产。
getValue(time, result) → {Object}
获取所提供时间的属性值。
Parameters:
time (JulianDate) 检索值的时间。
result (Object) 将值存储到的对象(如果省略),将创建并返回新实例。