Template:- OASIS:ClassCode

The ClassCode template describes how to represent a Code that is to be used as a Class.

NOTE    The use of Codes is described in Codes.

The SysML Block Definition diagram in Figure 1 shows how classification is represented in the PLCS PSM.

Template Properties

The following SysML Part, Reference, and Value properties are defined for this template:

References:
codeContext [1] (Template: OASIS:Organization)
The organization that is responsible for defining the code.
codeSource [0..1] (Template: OASIS:Document)
The document in which the code is defined.
subClassOf [1] (Block: Ap239Ap233Psm:ExternalOwlClass)
The OWL class of which the Class represented by code is a subset.

The following constraint, normally a uniqueness constraint, is applicable when instantiating the ExternalOwlClass:

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: ur1
Specification: (OCL2.0)
ExternalOwlClass::allInstances()->isUnique(class)
The reference data used in Block: Ap239Ap233Psm:ExternalOwlClass is restricted as follows:
RDL constraint 1:
The reference data for:
OASIS:ClassCode.subClassOf -> ExternalOwlClass.class
is restricted to the following class or a subclass:
typeOfCode [1] (Block: Ap239Ap233Psm:ExternalOwlClass)

The OWL class that defines the set of code identifiers of which this code is a member

The following constraint, normally a uniqueness constraint, is applicable when instantiating the ExternalOwlClass:

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: ur1
Specification: (OCL2.0)
ExternalOwlClass::allInstances()->isUnique(class)
The reference data used in Block: Ap239Ap233Psm:ExternalOwlClass is restricted as follows:
RDL constraint 1:
The code identifier.
The reference data for:
OASIS:ClassCode.typeOfCode -> ExternalOwlClass.class
is restricted to the following class or a subclass:
Values:
code [1] (Block: Ap239Ap233Psm:IdentifierString)
A string representing the code.