Documentation for XMCDA-2.0.0

Complex Type: function

[Table of contents]

Super-types: None
Sub-types: None
Name function
Used by (from the same schema document) Complex Type parameter , Complex Type criterion , Complex Type attribute , Complex Type thresholds
Abstract no
Documentation A general function which can be of one of the following three types: either a constant, a linear function or a piecewise linear function.
XML Instance Representation
<...
id=" xs:string [0..1]"
name=" xs:string [0..1]"
mcdaConcept=" xs:string [0..1]">
<description> xmcda:description </description> [0..1]
Start Choice [1]
<constant> xmcda:numericValue </constant> [1]
<linear> [1]

'A linear function. Requires a slope and an intercept.'


Start All [1]
<slope> xmcda:numericValue </slope> [1]
<intercept> xmcda:numericValue </intercept> [1]
End All
</linear>
<piecewiseLinear> [1]

'A piecewise linear function as a list of segments.'


<segment> [1..*]

'Represents a segment, defined by two points: one for the head, one for the tail.'


Start All [1]
<head> xmcda:point </head> [1]
<tail> xmcda:point </tail> [1]
End All
</segment>
</piecewiseLinear>
<points> [1]

'A list of points.'


<point> xmcda:point </point> [1..*]
</points>
End Choice
</...>
Diagram
h229206647 h-1716105399 h-1716105399 h-1716105399 h-1082952629 h-1082952629 h-1082952629 h-1891427716
Schema Component Representation
<xs:complexType name="function">
<xs:sequence>
<xs:element name="description" type=" xmcda:description " minOccurs="0"/>
<xs:choice>
<xs:element name="constant" type=" xmcda:numericValue "/>
<xs:element name="linear">
<xs:complexType>
<xs:all>
<xs:element name="slope" type=" xmcda:numericValue "/>
<xs:element name="intercept" type=" xmcda:numericValue "/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="piecewiseLinear">
<xs:complexType>
<xs:sequence>
<xs:element name="segment" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="head" type=" xmcda:point "/>
<xs:element name="tail" type=" xmcda:point "/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="points">
<xs:complexType>
<xs:sequence>
<xs:element name="point" type=" xmcda:point " maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref=" xmcda:defaultAttributes "/>
</xs:complexType>