Timed color set functions

A number of functions are predefined for all Timed color sets. In the following, we assume that the color set cs has been declared as a timed color set. Functions for the untimed version of the color set (which is always automatically defined in addition to the timed version) are described on the help page for Color set functions.

Equality Operators

The equality operators = and <> are defined for all timed color sets, while <, >, <= and >= are not defined for timed color sets. To test the order of the elements in timed color sets, use the lt function, which is described below.

Functions for all timed color sets

Note that while the color set cs has been declared as a timed color set, the names of the following functions have the prefix cs'timed.

cs'timed.lt(c1@ts1,c2@ts2)
returns true if cs.lt(c1,c2), or if (c1=c2 and ModelTime.lt(ts2,ts1)) (note that a big time stamp is less than a small time stamp), otherwise returns false
cs'timed.legal(v@ts)
test whether value v is a member of the (untimed) color set cs. v must be a member of either the color set cs, an alias color set for cs or a superset color set of cs
cs'timed.mkstr(c@ts)
make string representation of a timed color, i.e. color c with time stamp ts
cs'timed.mkstr_ms(tms)
make string representation of a timed multi-set
cs'timed.input(s)
read a timed color, i.e. a color and a time stamp, from input stream s
cs'timed.input_ms(s)
read a timed multi-set from input stream s
cs'timed.output(s,c@ts)
write color c with time stamp ts, to output stream s
cs'timed.output_ms(s,tms)
write timed multi-set tms to output stream s