Package com.nomagic.magicdraw.sysml.util
Class SysMLUtility
java.lang.Object
com.nomagic.magicdraw.sysml.util.SysMLUtility
- Direct Known Subclasses:
 SysMLUtilities
SysML utilities.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDirectedFeature enumerationstatic enumFlow Direction enumeration - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDirectionForPort(Element element) Return element directionstatic SysMLUtility.DirectedFeaturegetFeatureDirection(Feature feature) Returns DirectedFeatures featureDirection tag valuestatic SysMLUtility.FlowDirectiongetFlowDirection(Element element) Return the direction from element with flow direction (Flow Port and Flow Property)static booleanisAtomicFlowPort(Port port) Check if flowPort is atomic or not.static booleanisBlockNotConstraint(Element element) Check if an element is a block or a derived block but not a constraint block (or derived).static booleanisEncapsulated(Element element) Check the isEncapsulated of elementelement.static booleanisInterfaceBlockNotConstraint(Element element) Check if an element is a InterfaceBlock or a derived InterfaceBlock but not a constraint block (or derived).static voidsetDirectionForFlowPort(Port port, SysMLUtility.FlowDirection direction) Set the direction for flowPort. 
- 
Constructor Details
- 
SysMLUtility
public SysMLUtility() 
 - 
 - 
Method Details
- 
isBlockNotConstraint
Check if an element is a block or a derived block but not a constraint block (or derived).- Parameters:
 element- the element to check- Returns:
 - true if element is a block but not a constraint block.
 
 - 
isInterfaceBlockNotConstraint
Check if an element is a InterfaceBlock or a derived InterfaceBlock but not a constraint block (or derived).- Parameters:
 element- the element to check- Returns:
 - true if element is a block but not a constraint block.
 
 - 
isAtomicFlowPort
Check if flowPort is atomic or not.- Parameters:
 port- flowPort to check- Returns:
 trueis flowPort atomic,falseif non-atomic
 - 
setDirectionForFlowPort
Set the direction for flowPort.- Parameters:
 port- flowPort elementdirection- flow direction
 - 
getFlowDirection
Return the direction from element with flow direction (Flow Port and Flow Property)- Parameters:
 element- element with flow direction- Returns:
 - flow direction, empty if direction is not set
 
 - 
isEncapsulated
Check the isEncapsulated of elementelement.- Parameters:
 element- element to check- Returns:
 truewhen encapsulated,falsewhen not encapsulated or value is not set.
 - 
getFeatureDirection
Returns DirectedFeatures featureDirection tag value- Parameters:
 feature- DirectedFeature to check- Returns:
 - direction of feature
 
 - 
getDirectionForPort
Return element direction- Parameters:
 element- element from which to get direction- Returns:
 - element direction string
 
 
 -