de.uka.ipd.sdq.pcm.usagemodel
Interface Branch

All Superinterfaces:
AbstractUserAction, Entity, Identifier, NamedElement
All Known Implementing Classes:
BranchImpl

public interface Branch
extends AbstractUserAction

A representation of the model object 'Branch'. A Branch splits the user flow with a XOR-semantic: one of the included BranchTransitions is taken depending on the specified branch probabilities. Each BranchTransition contains a nested ScenarioBehaviour, which a user executes once this branch transition is chosen. After execution of the complete nested ScenarioBehaviour, the next action in the user flow after the Branch is its successor action. A constraint ensures that all branchProbabilities of the included BranchTransitions sum up to 1.

The following features are supported:

See Also:
UsagemodelPackage.getBranch()

Field Summary
static String copyright
           
 
Method Summary
 boolean AllBranchProbabilitiesMustSumUpTo1(DiagnosticChain diagnostics, Map<Object,Object> context)
          self->collect(branchTransitions_Branch.branchProbability)->sum() > 0.999 and self->collect(branchTransitions_Branch.branchProbability)->sum() <1.001
  getBranchTransitions_Branch()
          Returns the value of the 'Branch Transitions Branch' containment reference list.
 
Methods inherited from interface de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction
getPredecessor, getSuccessor, setPredecessor, setSuccessor
 
Methods inherited from interface de.uka.ipd.sdq.identifier.Identifier
getId, idHasToBeUnique, setId
 
Methods inherited from interface de.uka.ipd.sdq.pcm.core.entity.NamedElement
getEntityName, setEntityName
 

Field Detail

copyright

static final String copyright

See Also:
Constant Field Values
Method Detail

getBranchTransitions_Branch

 getBranchTransitions_Branch()
Returns the value of the 'Branch Transitions Branch' containment reference list. The list contents are of type BranchTransition.

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

Returns:
the value of the 'Branch Transitions Branch' containment reference list.
See Also:
UsagemodelPackage.getBranch_BranchTransitions_Branch()

AllBranchProbabilitiesMustSumUpTo1

boolean AllBranchProbabilitiesMustSumUpTo1(DiagnosticChain diagnostics,
                                           Map<Object,Object> context)
self->collect(branchTransitions_Branch.branchProbability)->sum() > 0.999 and self->collect(branchTransitions_Branch.branchProbability)->sum() <1.001

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.