new CompositeProperty()
Example
var constantProperty = ...;
var sampledProperty = ...;
//Create a composite property from two previously defined properties
//where the property is valid on August 1st, 2012 and uses a constant
//property for the first half of the day and a sampled property for the
//remaining half.
var composite = new bmgl.CompositeProperty();
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T12:00:00.00Z',
data : constantProperty
}));
composite.intervals.addInterval(bmgl.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T12:00:00.00Z/2012-08-02T00:00:00.00Z',
isStartIncluded : false,
isStopIncluded : false,
data : sampledProperty
}));
Members
(readonly) definitionChanged : Event
獲取每當此屬性的定義更改時引發的事件。每當使用與當前值不同的數據調用setvalue時,定義就會更改。
intervals : TimeIntervalCollection
獲取間隔集合。
(readonly) isConstant : Boolean
獲取一個值,該值指示此屬性是否為常量。如果getValue總是為當前定義返回相同的結果,則將屬性視為常量。
Methods
equals(other) → {Boolean}
將此屬性與提供的屬性進行比較,如果相等,則返回
true
,否則返回false
。
Parameters:
獲取所提供時間的屬性值。
Parameters:
result
(Object)
將值存儲到的對象(如果省略),將創建并返回新實例。