|
|
| Sponsored by Magnetar Games | Main - Specification - Forum - Syntax |
|
XGC News Best Practices Documentation Discussion Forum About XGC Search Contact Us MORPH XGame/ABG XGame/RPS XRealm XScene XTheme MAGNETAR |
MORPH SyntaxDatatypes
Datatypes are declared using XML Schema constructs so that
their use is able to be properly validated by XML tools.
HLA simple datatypes may be represented using the XML Schema
xs:simpleType.
Enumerated types are datatypes that can take a finite set of discrete values.
MORPH declares these using XML Schema enumerated types, which are derived from
a simple type (usually xs:string) through restriction.
Arrays are sequences of elements of the same underlying datatype. Arrays (or
sequences) are defined as indexed homogenous collections of datatypes. In XML,
an array of characters is a string and is easily utilized. More complicated
arrays make use of repeated groups of nested elements.
Records consist of a variable number of fields that are of different types:
simple, basic, variant, or other fixed records. In XML, these are represented
using nested elements. The leaf node's data is always represented using
attributes.
Variant record types define discriminated unions of types. XML Schema provides a
xs:union type which can be used for this purpose.
|