Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.ProbabilityStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.ProbabilityStereotype
-
- Enclosing class:
- SysMLProfile
public static class SysMLProfile.ProbabilityStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROBABILITY
When the probability stereotype is applied to edges coming out of decision nodes and object nodes, it provides an expression for the probability that the edge will be traversed.static java.lang.String
STEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProbabilityStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
void
clearProbability(Element element)
java.lang.String
getProbability(Element element)
Property
getProbabilityProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.boolean
is(Element element)
static boolean
isInstance(Element element)
void
setProbability(Element element, java.lang.String value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
PROBABILITY
public static final java.lang.String PROBABILITY
When the probability stereotype is applied to edges coming out of decision nodes and object nodes, it provides an expression for the probability that the edge will be traversed. These must be between zero and one inclusive (percentage is supported too), and add up to one for edges with same source at the time the probabilities are used.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProbabilityStereotype
protected ProbabilityStereotype(SysMLProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapper
Returns stereotype for this wrapper.- Specified by:
getStereotype
in classProfileImplementation.StereotypeWrapper
- Returns:
- stereotype
-
getProbabilityProperty
@CheckForNull public Property getProbabilityProperty()
-
setProbability
public void setProbability(Element element, @CheckForNull java.lang.String value)
-
clearProbability
public void clearProbability(Element element)
-
getProbability
@CheckForNull public java.lang.String getProbability(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-