Defines a PMI dimension component.
new DimensionComponent(
nominalValue?,type?):DimensionComponent
Creates a dimension component from nominal value and dimension type.
number = 0
Nominal value.
DimensionType = DimensionType.UNDEFINED
Dimension type.
DimensionComponent
readonlyattributes:Set<SemanticAttribute>
nominalValue:
number=0
Nominal value.
type:
DimensionType=DimensionType.UNDEFINED
Dimension type.
get id():
bigint
Returns the unique identifier of the object.
bigint
accept(
visitor):void
Accepts a semantic attribute visitor or semantic component visitor.
If the visitor is a SemanticComponentVisitor, it will invoke the SemanticComponentVisitor.visitDimensionComponent method. Else if the visitor is a SemanticAttributeVisitor, it will invoke the accept method of each attribute.
SemanticAttributeVisitor | SemanticComponentVisitor
Visitor to accept.
void
addAttribute(
attribute):void
Adds a semantic attribute.
Semantic attribute.
void
Use SemanticComponent.attributes and attributes.add instead.
SemanticComponent.addAttribute
hasAttributes():
boolean
Returns whether this component has attributes.
boolean
Use SemanticComponent.attributes and attributes.size > 0 instead.
SemanticComponent.hasAttributes
numberOfAttributes():
number
Returns the number of semantic attributes.
number
Use SemanticComponent.attributes and attributes.size instead.