new Property()
The interface for all attributes, which represent values that can change over time. This type defines an interface and cannot be directly instantiated.
Members
-
readonly definitionChangedEvent
-
Get the event thrown when the property definition changes. If calling getValue returns different results within the same time frame, it is considered that the definition has changed.
-
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 otherProperty optional A property.
Returns:
Type Description Boolean If the left and right sides are equal, it is true; otherwise, it is false. -
getValue(time, result){Object}
-
Retrieve the attribute value of the provided time.
Name Type Description timeJulianDate The time to retrieve the attribute value.
resultObject optional The object in which the value is stored, if omitted, creates and returns a new instance.
Returns:
Type Description Object If no result parameters are provided, use the modified result parameters or a new instance.