Interface AdaptationBehavior

    • Method Detail

      • getInvolvedRoles

        EList<RoleType> getInvolvedRoles()
        Returns the value of the 'Involved Roles' containment reference list. The list contents are of type RoleType. It is bidirectional and its opposite is 'Action'.

        If the meaning of the 'Involved Roles' containment reference list isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Involved Roles' containment reference list.
        See Also:
        CorePackage.getAdaptationBehavior_InvolvedRoles(), RoleType.getAction()
        Generated class or method.
        EMF model class or method.
        opposite="action" containment="true" required="true"
      • getTransientStateProfile

        org.modelversioning.emfprofile.Profile getTransientStateProfile()
        Returns the value of the 'Transient State Profile' reference.

        If the meaning of the 'Transient State Profile' reference isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Transient State Profile' reference.
        See Also:
        setTransientStateProfile(Profile), CorePackage.getAdaptationBehavior_TransientStateProfile()
        Generated class or method.
        EMF model class or method.
      • setTransientStateProfile

        void setTransientStateProfile​(org.modelversioning.emfprofile.Profile value)
        Sets the value of the 'Transient State Profile' reference.
        Parameters:
        value - the new value of the 'Transient State Profile' reference.
        See Also:
        getTransientStateProfile()
        Generated class or method.
      • execute

        boolean execute​(RoleSet affectedRoleSet,
                        ControllerCallInputVariableUsageCollection controllerCallsVariableUsages)
        Executes this AdaptationBehavior for the given RoleSet and with the given VariableUsages. As no ExecutionContext is passed, this behavior will be processed by the main thread, i.e. by the underlying ReconfigurationProcess.
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" controllerCallsVariableUsagesRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).addControllerCallVariableUsages(controllerCallsVariableUsages).build().doSwitch(this).getExecutionResultAsBoolean();\r\n'"
      • execute

        boolean execute​(RoleSet affectedRoleSet,
                        ControllerCallInputVariableUsageCollection controllerCallsVariableUsages,
                        ExecutionContext executionContext)
        Executes this AdaptationBehavior for the given RoleSet and with the given VariableUsages. Note that the behavior is synchronously executed by the process that is associated with the given context.
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" controllerCallsVariableUsagesRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).addControllerCallVariableUsages(controllerCallsVariableUsages).addExecutionContext(executionContext).build().doSwitch(this).getExecutionResultAsBoolean();\r\n'"
      • execute

        boolean execute​(RoleSet affectedRoleSet)
        Executes this AdaptationBehavior for the given RoleSet. As no ExecutionContext is passed, this behavior will be processed by the main thread, i.e. by the underlying ReconfigurationProcess.
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).build().doSwitch(this).getExecutionResultAsBoolean();'"
      • execute

        boolean execute​(RoleSet affectedRoleSet,
                        ExecutionContext executionContext)
        Executes this AdaptationBehavior for the given RoleSet and with the given VariableUsages. Note that the behavior is synchronously executed by the process that is associated with the given context.
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).addExecutionContext(executionContext).build().doSwitch(this).getExecutionResultAsBoolean();\r\n'"
      • executeAsync

        ExecutionContext executeAsync​(RoleSet affectedRoleSet,
                                      ControllerCallInputVariableUsageCollection controllerCallsVariableUsages)
        Triggers the asynchronous execution of this AdaptationBehavior for the given RoleSet and VariableUsages. The ExecutionContext of the executing process, which is created before the async process is spawned, is returned. It should be passed to synchronous adaptation behavior executions that are done within.
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" controllerCallsVariableUsagesRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).addControllerCallVariableUsages(controllerCallsVariableUsages).isAsync().build().doSwitch(this).getContext().get();\r\n'"
      • executeAsync

        ExecutionContext executeAsync​(RoleSet affectedRoleSet,
                                      ControllerCallInputVariableUsageCollection controllerCallsVariableUsages,
                                      ExecutionContext asyncExecutionContext)
        Triggers the asynchronous execution of this AdaptationBehavior for the given RoleSet and VariableUsages in the given ExecutionContext. To conform to ome overloaded versions of this method, this context is also returned. It should be passed to synchronous adaptation behavior executions that are done within.
        Generated class or method.
        EMF model class or method.
        controllerCallsVariableUsagesRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).isAsync(asyncExecutionContext).addControllerCallVariableUsages(controllerCallsVariableUsages).build().doSwitch(this);\r\nreturn asyncExecutionContext;\r\n'"
      • executeAsync

        ExecutionContext executeAsync​(RoleSet affectedRoleSet)
        Generated class or method.
        EMF model class or method.
        required="true" affectedRoleSetRequired="true" annotation="http://www.eclipse.org/emf/2002/GenModel body='return org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).isAsync().build().doSwitch(this).getContext().get();'"
      • executeAsync

        ExecutionContext executeAsync​(RoleSet affectedRoleSet,
                                      ExecutionContext asyncExecutionContext)
        Triggers the asynchronous execution of this AdaptationBehavior for the given RoleSet in the given ExecutionContext. To conform to ome overloaded versions of this method, this context is also returned. It should be passed to synchronous adaptation behavior executions that are done within.
        Generated class or method.
        EMF model class or method.
        annotation="http://www.eclipse.org/emf/2002/GenModel body='org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.getInterpreterBuilder(affectedRoleSet, getRepository()).isAsync(asyncExecutionContext).build().doSwitch(this);\r\nreturn asyncExecutionContext;\r\n'"