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 com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private SysMLProfile
_p
private com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
probability
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(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
java.lang.String
getProbability(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
getProbabilityProperty()
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype
getStereotype()
boolean
is(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
static boolean
isInstance(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
void
setProbability(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.lang.String value)
-
-
-
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
-
_p
private final SysMLProfile _p
-
probability
@CheckForNull private com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property probability
-
-
Constructor Detail
-
ProbabilityStereotype
protected ProbabilityStereotype(SysMLProfile profile)
-
-
Method Detail
-
getStereotype
public com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype getStereotype()
- Specified by:
getStereotype
in classcom.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
getProbabilityProperty
@CheckForNull public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property getProbabilityProperty()
-
setProbability
public void setProbability(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, @CheckForNull java.lang.String value)
-
clearProbability
public void clearProbability(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
getProbability
@CheckForNull public java.lang.String getProbability(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
isInstance
public static boolean isInstance(@CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
-