@OpenApiAll public class fUMLHelper extends java.lang.Object
Constructor and Description |
---|
fUMLHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addFeatureValues(fUML.Semantics.Loci.LociL1.Locus locus,
fUML.Semantics.Classes.Kernel.Value valueOwner,
StructuralFeature feature,
fUML.Semantics.Classes.Kernel.ValueList inputValues,
int insertAt,
boolean replaceAll)
Add the specified
ValueList to the FeatureValue (matched with the specified StructuralFeature ). |
static boolean |
addObjectToValueList(fUML.Semantics.Classes.Kernel.ValueList vList,
java.lang.Object object,
java.lang.Object owner)
Create the new
Value from the object ,
and add to the last position of the specified ValueList . |
static java.lang.String |
buildStringFor(java.util.Collection<?> collection,
boolean isNormalFUMLStructure,
java.util.Map<java.lang.Integer,java.awt.Color> colors)
Builds String representation for the given collection.
|
static java.lang.String |
buildStringFor(java.lang.Object object,
boolean isNormalFUMLStructure)
Builds String representation for the given object.
|
static java.lang.String |
buildStringFor(java.lang.Object object,
boolean isNormalFUMLStructure,
boolean includeInstance)
Builds String representation for the given object.
|
static java.lang.Object |
callBehavior(fUML.Semantics.Classes.Kernel.StructuredValue object,
Behavior behavior,
java.util.List<?> arguments,
SimulationSession session,
java.lang.Boolean synchronous)
Create the
Execution based on the specified Behavior , and execute. |
static java.lang.Object |
callOperation(fUML.Semantics.Classes.Kernel.StructuredValue object,
Operation operation,
java.util.List<?> arguments,
SimulationSession session,
java.lang.Boolean synchronous)
Call the specified
Operation . |
static java.lang.Object |
callOperation(fUML.Semantics.Classes.Kernel.StructuredValue object,
Operation operation,
java.util.List<?> arguments,
SimulationSession session,
java.lang.Boolean synchronous,
fUML.Semantics.Classes.Kernel.StructuredValue caller)
Call the specified
Operation . |
static fUML.Semantics.Classes.Kernel.ValueList |
copyValueFrom(fUML.Semantics.Classes.Kernel.ValueList valueList)
Creates new ValueList, copy each value in the specified
valueList to the new list. |
static fUML.Semantics.Classes.Kernel.Object_ |
createObject(Class classifier,
fUML.Semantics.Classes.Kernel.Object_ context)
Create the runtime object from the specified classifier.
|
static fUML.Semantics.Classes.Kernel.Value |
createValue(java.lang.Object o,
java.lang.Object owner)
Deprecated.
|
static fUML.Semantics.Classes.Kernel.Value |
createValue(java.lang.Object o,
java.lang.Object owner,
fUML.Semantics.Loci.LociL1.Locus locus)
Create the fUML value object with the specified object.
|
static fUML.Semantics.Classes.Kernel.Value |
createValueByType(java.lang.Object value,
java.lang.Object owner,
Type type)
Creates Value according to
type . |
static fUML.Semantics.Classes.Kernel.ValueList |
createValueList(java.lang.Object value,
java.lang.Object owner)
A convenience method for creating the instance of
ValueList with assigned values, and return it. |
static fUML.Semantics.Classes.Kernel.ValueList |
createValueList(java.lang.Object value,
java.lang.Object owner,
Type tp)
A convenience method for creating the instance of
ValueList with assigned values, and return it. |
static java.util.List<fUML.Semantics.Classes.Kernel.Object_> |
getConnectedObjectsViaPort(fUML.Semantics.Classes.Kernel.Value value,
Port port,
SimulationSession session)
Collect all connected objects via the specified
port from the specified value . |
static StructuralFeature |
getFeatureByName(fUML.Semantics.Classes.Kernel.StructuredValue object,
java.lang.String featureName)
Returns the
StructuralFeature of the specified CompoundValue
with the specified structural feature name. |
static fUML.Semantics.Classes.Kernel.FeatureValue |
getFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
StructuralFeature feature)
Returns the
FeatureValue from the specified StructuredValue and StructuralFeature . |
static fUML.Semantics.Classes.Kernel.FeatureValue |
getFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
StructuralFeature feature,
fUML.Semantics.Loci.LociL1.Locus locus)
Returns the
FeatureValue from the specified StructuredValue and StructuralFeature . |
static fUML.Semantics.Classes.Kernel.FeatureValue |
getFeatureValueByName(fUML.Semantics.Classes.Kernel.StructuredValue object,
java.lang.String name)
Returns the
FeatureValue from the specified StructuredValue with the specified name. |
static fUML.Semantics.Classes.Kernel.FeatureValue |
getFeatureValueByName(fUML.Semantics.Classes.Kernel.StructuredValue object,
java.lang.String name,
fUML.Semantics.Loci.LociL1.Locus locus)
Returns the
FeatureValue from the specified StructuredValue with the specified name and Locus . |
static java.lang.Object |
getFirstObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList)
Returns the first object in the given valueList if existed.
|
static java.lang.Object |
getFirstObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList,
boolean returnReference)
Returns the first object in the given valueList if existed.
|
static void |
getNormativeValue(java.lang.Object object,
java.util.Collection<java.lang.String> normative)
Gets the normative value.
|
static java.util.Collection<java.lang.String> |
getNormativeValues(java.util.Collection<?> values)
Get fUML normative values.
|
static java.lang.Object |
getObjectFromFeatureValue(fUML.Semantics.Classes.Kernel.FeatureValue featureValue)
Return the value or value list from the feature value.
|
static java.lang.Object |
getObjectFromParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue parameterValue)
Return the value or value list from the parameter value.
|
static java.lang.Object |
getObjectFromToken(fUML.Semantics.Activities.IntermediateActivities.Token token)
The the
Object value from the specified Token . |
static java.lang.Object |
getObjectFromTokenList(fUML.Semantics.Activities.IntermediateActivities.TokenList tokenList)
Return the value or value list from the
TokenList . |
static java.lang.Object |
getObjectFromValue(fUML.Semantics.Classes.Kernel.Value value)
Return the value of the specified fUML value object.
|
static java.lang.Object |
getObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList,
Type type,
int upperMulitiplicity)
Return the value or value list from the fUML value list.
|
static Parameter |
getParameterByName(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution object,
java.lang.String name)
Returns the instance of
Parameter from the specified Execution and parameter's name. |
static fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue |
getParameterValueByName(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution object,
java.lang.String name)
Returns the parameter value of the
Execution . |
static java.util.List<Signal> |
getSignalsFromExecution(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution)
Collect the list of signals from the execution.
|
static java.util.List<Signal> |
getSignalsFromObject(fUML.Semantics.Classes.Kernel.Object_ object)
Return the list of signal with the specified object.
|
static java.util.List<fUML.Semantics.Classes.Kernel.FeatureValue> |
getValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
java.lang.String featureName)
Returns the list
FeatureValue from the specified StructuredValue with the specified feature name. |
static java.util.List<fUML.Semantics.Classes.Kernel.FeatureValue> |
getValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
StructuralFeature strucuturalFeature)
Returns the list
FeatureValue from the specified StructuredValue with the specified structural feature. |
static void |
removeFeatureValue(fUML.Semantics.Loci.LociL1.Locus locus,
fUML.Semantics.Classes.Kernel.Value valueOwner,
StructuralFeature feature,
fUML.Semantics.Classes.Kernel.Value value,
int removeAt,
boolean isRemoveDuplicates)
Removes the specified
value from the FeatureValue that is matched with the specified feature . |
static boolean |
saveValueToInstance(fUML.Semantics.Classes.Kernel.StructuredValue object,
InstanceSpecification instance)
Save the runtime values of the given object to the slots of the given InstanceSpecification.
|
static void |
sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal,
fUML.Semantics.Classes.Kernel.Object_ target)
Send the specified
SignalInstance to the specified target Object_ . |
static void |
sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal,
fUML.Semantics.Classes.Kernel.Object_ target,
java.lang.String targetPortName)
Send the specified
SignalInstance to the specified target and targetPortName . |
static void |
sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal,
java.lang.String targetName)
Send the specified
SignalInstance to the specified targetName . |
static void |
sendSignal(java.lang.String signalName,
fUML.Semantics.Classes.Kernel.Object_ target)
Create SignalInstance instance of the specified
Signal name, and send it to the target Object_ .
If signalName contains "::", it will find the signal from the qualified name, the signal is found if its qualified name is ended with signalName . |
static void |
sendSignal(java.lang.String signalName,
fUML.Semantics.Classes.Kernel.Object_ target,
java.lang.String targetPortName)
Create SignalInstance instance of the specified
Signal name, and send it to the specified target and targetPortName . |
static void |
sendSignal(java.lang.String signalName,
java.lang.String targetName)
Create SignalInstance instance of the specified
Signal name, and send it to the specified targetName .
If signalName contains "::", it will find the signal from the qualified name, the signal is found if its qualified name is ended with signalName .
If targetName is defined, there are two possible cases. |
static void |
setFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
java.lang.String featureName,
java.lang.Object value)
Find the
StructuralFeature from the specified object with the specified structural feature name,
and delegates to setFeatureValue(StructuredValue, StructuralFeature, Object) . |
static void |
setFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object,
StructuralFeature feature,
java.lang.Object value)
Find the
FeatureValue , and set its value with the value . |
static void |
setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution,
Parameter parameter,
java.lang.Object value)
Find the
ParameterValue . |
static void |
setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution,
java.lang.String name,
java.lang.Object value)
Find the
Parameter by name from the specified Execution ,
and delegate to setParameterValue(Execution, Parameter, Object) . |
static void |
setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue parameterValue,
java.lang.Object object,
boolean isReplaceAll)
Set the value to the specified
ParameterValue . |
static void |
setValue(fUML.Semantics.Classes.Kernel.Value value,
java.lang.Object o)
Set the specified value to the fUML value object.
|
public static fUML.Semantics.Classes.Kernel.FeatureValue getFeatureValueByName(fUML.Semantics.Classes.Kernel.StructuredValue object, java.lang.String name)
FeatureValue
from the specified StructuredValue
with the specified name.
Find the StructuralFeature
by getFeatureByName(fUML.Semantics.Classes.Kernel.StructuredValue, java.lang.String)
object
- the specified StructuredValue
name
- feature value nameFeatureValue
from the specified CompoundValue
or null
if not foundpublic static fUML.Semantics.Classes.Kernel.FeatureValue getFeatureValueByName(fUML.Semantics.Classes.Kernel.StructuredValue object, java.lang.String name, fUML.Semantics.Loci.LociL1.Locus locus)
FeatureValue
from the specified StructuredValue
with the specified name and Locus
.
Find the StructuralFeature
by getFeatureByName(fUML.Semantics.Classes.Kernel.StructuredValue, java.lang.String)
object
- the specified StructuredValue
name
- feature value namelocus
- the specified Locus
FeatureValue
from the specified CompoundValue
or null
if not foundpublic static fUML.Semantics.Classes.Kernel.FeatureValue getFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object, StructuralFeature feature, fUML.Semantics.Loci.LociL1.Locus locus)
FeatureValue
from the specified StructuredValue
and StructuralFeature
.
If StructuredValue.getFeatureValue(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.StructuralFeature)
cannot find the FeatureValue
, continue to find it from Link
The Locus
is necessary to find FeatureValue
from Link
object
- the specified StructuredValue
feature
- the specified StructuralFeature
locus
- the specified Locus
FeatureValue
java.lang.NullPointerException
- if object
is null
public static fUML.Semantics.Classes.Kernel.FeatureValue getFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object, StructuralFeature feature)
FeatureValue
from the specified StructuredValue
and StructuralFeature
.
If StructuredValue.getFeatureValue(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.StructuralFeature)
cannot find the FeatureValue
, continue to find it from Link
The Locus
that being retrieved from fUMLEngine
is necessary to find FeatureValue
from Link
This method try to get Locus
from fUMLEngine
of the active session.object
- the specified StructuredValue
feature
- the specified StructuralFeature
FeatureValue
java.lang.NullPointerException
- if object
is null
public static fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue getParameterValueByName(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution object, java.lang.String name)
Execution
.object
- the specified Execution
name
- the parameter value namepublic static Parameter getParameterByName(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution object, java.lang.String name)
Parameter
from the specified Execution
and parameter's name.object
- the specified Execution
name
- the parameter nameParameter
@Deprecated public static fUML.Semantics.Classes.Kernel.Value createValue(java.lang.Object o, java.lang.Object owner)
o
- the specified objectowner
- the specified ownerpublic static fUML.Semantics.Classes.Kernel.Value createValue(java.lang.Object o, java.lang.Object owner, fUML.Semantics.Loci.LociL1.Locus locus)
o
- the specified objectowner
- the specified ownerlocus
- locuspublic static fUML.Semantics.Classes.Kernel.Value createValueByType(java.lang.Object value, java.lang.Object owner, Type type)
type
.value
- Objectowner
- Owner of created valuetype
- Typetype
public static fUML.Semantics.Classes.Kernel.ValueList createValueList(java.lang.Object value, java.lang.Object owner)
ValueList
with assigned values, and return it.
If value
is instance of ValueList
, just return value
value
- the specified value, It can be collections, arrays, or even the single value.owner
- of the created valueValueList
with assigned values.public static fUML.Semantics.Classes.Kernel.ValueList createValueList(java.lang.Object value, java.lang.Object owner, Type tp)
ValueList
with assigned values, and return it.
If value
is instance of ValueList
, just return value
value
- the specified value, It can be collections, arrays, or even the single value.owner
- of the created valuetp
- Type of valueValueList
with assigned values.public static java.lang.Object getObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList, Type type, int upperMulitiplicity)
valueList
- the specified fUML value listtype
- the type of values that returnsupperMulitiplicity
- upper multiplicitypublic static java.lang.Object getObjectFromFeatureValue(fUML.Semantics.Classes.Kernel.FeatureValue featureValue)
featureValue
- the specified feature valuepublic static java.lang.Object getObjectFromParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue parameterValue)
parameterValue
- the specified parameter valuepublic static java.lang.Object getObjectFromValue(fUML.Semantics.Classes.Kernel.Value value)
value
- the fUML object valuepublic static java.lang.Object getFirstObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList)
valueList
- ValueListpublic static java.lang.Object getFirstObjectFromValueList(fUML.Semantics.Classes.Kernel.ValueList valueList, boolean returnReference)
valueList
- ValueListreturnReference
- if this flag is true, if the value is Object_, it will return Reference of that Object_ insteadpublic static java.util.List<Signal> getSignalsFromObject(fUML.Semantics.Classes.Kernel.Object_ object)
object
- the specified objectpublic static java.util.List<Signal> getSignalsFromExecution(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution)
execution
- the specified executionpublic static StructuralFeature getFeatureByName(fUML.Semantics.Classes.Kernel.StructuredValue object, java.lang.String featureName)
StructuralFeature
of the specified CompoundValue
with the specified structural feature name.object
- the specified CompoundValue
(or subclasses) to be usedfeatureName
- the structural feature nameStructuralFeature
of the specified CompoundValue
public static void setFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object, StructuralFeature feature, java.lang.Object value)
FeatureValue
, and set its value with the value
.
If value
is instance of ValueList
, set value
to the found FeatureValue
,
otherwise create the new ValueList
and its value and set to the found FeatureValue
.
If want to find FeatureValue
from Association
(Link
),
use #addFeatureValues(Locus locus, StructuredValue valueOwner, StructuralFeature feature, ValueList inputValues, int insertAt, boolean replaceAll)
object
- the specified objectfeature
- the structural featurevalue
- the specified value#addFeatureValues(Locus, StructuredValue, StructuralFeature, ValueList, int, boolean)
public static void setFeatureValue(fUML.Semantics.Classes.Kernel.StructuredValue object, java.lang.String featureName, java.lang.Object value)
StructuralFeature
from the specified object with the specified structural feature name,
and delegates to setFeatureValue(StructuredValue, StructuralFeature, Object)
.object
- the specified objectfeatureName
- the structural feature namevalue
- the specified valuesetFeatureValue(StructuredValue, StructuralFeature, Object)
public static void setValue(fUML.Semantics.Classes.Kernel.Value value, java.lang.Object o)
value
- the fUML value objecto
- the specified valuepublic static fUML.Semantics.Classes.Kernel.ValueList copyValueFrom(fUML.Semantics.Classes.Kernel.ValueList valueList)
valueList
to the new list.valueList
- the ValueList to be copied value.valueList
.public static java.lang.Object callBehavior(fUML.Semantics.Classes.Kernel.StructuredValue object, Behavior behavior, java.util.List<?> arguments, SimulationSession session, java.lang.Boolean synchronous)
Execution
based on the specified Behavior
, and execute.
The arguments are passed to create the parameter value of the created Execution
.object
- a contextbehavior
- an instance of subclasses of Behavior
arguments
- argument listssession
- the specified sessionsynchronous
- true if call synchronously.public static java.lang.Object callOperation(fUML.Semantics.Classes.Kernel.StructuredValue object, Operation operation, java.util.List<?> arguments, SimulationSession session, java.lang.Boolean synchronous)
Operation
.object
- the specified objectoperation
- the specified Operation
arguments
- argument listssession
- the running sessionsynchronous
- is synchronous or notpublic static java.lang.Object callOperation(fUML.Semantics.Classes.Kernel.StructuredValue object, Operation operation, java.util.List<?> arguments, SimulationSession session, java.lang.Boolean synchronous, fUML.Semantics.Classes.Kernel.StructuredValue caller)
Operation
.object
- the specified objectoperation
- the specified Operation
arguments
- argument listssession
- the running sessionsynchronous
- is synchronous or notcaller
- the specified calling Object_
public static fUML.Semantics.Classes.Kernel.Object_ createObject(Class classifier, fUML.Semantics.Classes.Kernel.Object_ context)
classifier
- the specified classifiercontext
- the creating objectpublic static void setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution, java.lang.String name, java.lang.Object value)
Parameter
by name from the specified Execution
,
and delegate to setParameterValue(Execution, Parameter, Object)
.execution
- the specified Execution
name
- namevalue
- valuesetParameterValue(Execution, Parameter, Object)
public static void setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.Execution execution, Parameter parameter, java.lang.Object value)
ParameterValue
. The new ValueList
is created
from value
and set to the found Parameter
.execution
- the specified executionparameter
- the specified parametervalue
- the value to be set to ParameterValue
public static void setParameterValue(fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue parameterValue, java.lang.Object object, boolean isReplaceAll)
ParameterValue
. Now it supports only isReplaceAll == true.parameterValue
- the specified ParameterValue
.object
- the specified valueisReplaceAll
- if true, replace all existing valuepublic static java.lang.Object getObjectFromTokenList(fUML.Semantics.Activities.IntermediateActivities.TokenList tokenList)
TokenList
.tokenList
- the specified fUML token listpublic static java.lang.Object getObjectFromToken(fUML.Semantics.Activities.IntermediateActivities.Token token)
Object
value from the specified Token
.token
- the specified Token
Object
valuepublic static boolean addObjectToValueList(fUML.Semantics.Classes.Kernel.ValueList vList, java.lang.Object object, java.lang.Object owner)
Value
from the object
,
and add to the last position of the specified ValueList
.vList
- the specified ValueList
object
- the object being used to create Value
owner
- the specified ownerCollection.add(E)
)public static void addFeatureValues(fUML.Semantics.Loci.LociL1.Locus locus, fUML.Semantics.Classes.Kernel.Value valueOwner, StructuralFeature feature, fUML.Semantics.Classes.Kernel.ValueList inputValues, int insertAt, boolean replaceAll)
ValueList
to the FeatureValue
(matched with the specified StructuralFeature
).
This method supports insertAt, and replaceAll.locus
- the specified locusvalueOwner
- Valuefeature
- StructuralFeatureinputValues
- ValueListinsertAt
- the added positionreplaceAll
- if true, remove all existing values.public static java.util.Collection<java.lang.String> getNormativeValues(java.util.Collection<?> values)
values
- the specified values
values
public static java.lang.String buildStringFor(java.lang.Object object, boolean isNormalFUMLStructure)
object
- ObjectisNormalFUMLStructure
- true
the value field text will be represent as full qualified class name,
false
value text will be represented as simple.public static java.lang.String buildStringFor(java.lang.Object object, boolean isNormalFUMLStructure, boolean includeInstance)
object
- ObjectisNormalFUMLStructure
- true
the value field text will be represent as full qualified class name,
false
value text will be represented as simple.includeInstance
- whether to include instance name if it existspublic static java.lang.String buildStringFor(java.util.Collection<?> collection, boolean isNormalFUMLStructure, java.util.Map<java.lang.Integer,java.awt.Color> colors)
collection
- Collection>isNormalFUMLStructure
- true
the value field text will be represent as full qualified class name,
false
value text will be represented as simple.colors
- Map of value index and color, can be nullpublic static java.util.List<fUML.Semantics.Classes.Kernel.Object_> getConnectedObjectsViaPort(fUML.Semantics.Classes.Kernel.Value value, Port port, SimulationSession session)
port
from the specified value
.value
- the specified value
port
- the specified port
session
- the specified sessionpublic static void getNormativeValue(java.lang.Object object, java.util.Collection<java.lang.String> normative)
object
- the objectnormative
- the normativepublic static void removeFeatureValue(fUML.Semantics.Loci.LociL1.Locus locus, fUML.Semantics.Classes.Kernel.Value valueOwner, StructuralFeature feature, fUML.Semantics.Classes.Kernel.Value value, int removeAt, boolean isRemoveDuplicates)
value
from the FeatureValue
that is matched with the specified feature
.locus
- LocusvalueOwner
- Valuefeature
- StructuralFeaturevalue
- ValueremoveAt
- intisRemoveDuplicates
- booleanpublic static java.util.List<fUML.Semantics.Classes.Kernel.FeatureValue> getValue(fUML.Semantics.Classes.Kernel.StructuredValue object, java.lang.String featureName)
FeatureValue
from the specified StructuredValue
with the specified feature name.
FeatureValue from multiple Link
can be collected.object
- the specified StructuredValue
featureName
- feature nameFeatureValue
from the specified StructuredValue
or null
if not foundpublic static java.util.List<fUML.Semantics.Classes.Kernel.FeatureValue> getValue(fUML.Semantics.Classes.Kernel.StructuredValue object, StructuralFeature strucuturalFeature)
FeatureValue
from the specified StructuredValue
with the specified structural feature.
FeatureValue from multiple Link
can be collected.object
- the specified StructuredValue
strucuturalFeature
- strucuturalFeatureFeatureValue
from the specified StructuredValue
or null
if not foundpublic static boolean saveValueToInstance(fUML.Semantics.Classes.Kernel.StructuredValue object, InstanceSpecification instance)
object
- is the given runtime object, whose values will be saved to the InstanceSpecification.instance
- is the given InstanceSpecification for storing the runtime values to its slots.public static void sendSignal(java.lang.String signalName, fUML.Semantics.Classes.Kernel.Object_ target)
Signal
name, and send it to the target Object_
.
If signalName
contains "::", it will find the signal from the qualified name, the signal is found if its qualified name is ended with signalName
.signalName
- the specified Signal
nametarget
- the specified target Object_
public static void sendSignal(java.lang.String signalName, java.lang.String targetName)
Signal
name, and send it to the specified targetName
.
If signalName
contains "::", it will find the signal from the qualified name, the signal is found if its qualified name is ended with signalName
.
If targetName
is defined, there are two possible cases.
targetName
targetName
signalName
- the specified Signal
nametargetName
- the specified target object namepublic static void sendSignal(java.lang.String signalName, fUML.Semantics.Classes.Kernel.Object_ target, java.lang.String targetPortName)
Signal
name, and send it to the specified target
and targetPortName
.
If signalName
contains "::", it will find the signal from the qualified name, the signal is found if its qualified name is ended with signalName
.
signalName
- the specified Signal
nametarget
- the specified targettargetPortName
- the specified target port namepublic static void sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal, fUML.Semantics.Classes.Kernel.Object_ target)
SignalInstance
to the specified target Object_
.signal
- the specified SignalInstance
target
- the specified target Object_
public static void sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal, java.lang.String targetName)
SignalInstance
to the specified targetName
.
If targetName
is defined, there are two possible cases.
targetName
targetName
signal
- the specified SignalInstance
targetName
- the specified target object namepublic static void sendSignal(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal, fUML.Semantics.Classes.Kernel.Object_ target, java.lang.String targetPortName)
SignalInstance
to the specified target
and targetPortName
.signal
- the specified SignalInstance
target
- the specified targettargetPortName
- the specified target port name