public class GChoiceProjectionRule extends Object implements ProjectionRule
| Constructor and Description |
|---|
GChoiceProjectionRule() |
| Modifier and Type | Method and Description |
|---|---|
protected static Object |
extractCommonBehaviour(LChoice projected,
RoleDecl role,
IssueLogger l)
Extract common behaviour.
|
protected static void |
groupSubpathsWithCommonInitiator(LChoice projected,
RoleDecl role,
IssueLogger l)
This method checks whether choice paths should be grouped into sub-paths
with common initiating interaction sentences.
|
protected boolean |
isSameRole(LChoice c1,
LChoice c2)
Check whether roles are the same.
|
protected static Object |
merge(LChoice projected,
RoleDecl role,
IssueLogger l)
This method processes a choice construct.
|
Object |
project(ModuleContext context,
ModelObject mobj,
RoleDecl role,
IssueLogger logger)
This method projects the supplied model object
and reports any relevant issues to the supplied logger.
|
public Object project(ModuleContext context, ModelObject mobj, RoleDecl role, IssueLogger logger)
project in interface ProjectionRulecontext - The module contextmobj - The model objectrole - The role to projectlogger - The loggerprotected boolean isSameRole(LChoice c1, LChoice c2)
c1 - First choicec2 - Second choiceprotected static Object merge(LChoice projected, RoleDecl role, IssueLogger l)
projected - The projected choicerole - The projected rolelogger - The loggerprotected static void groupSubpathsWithCommonInitiator(LChoice projected, RoleDecl role, IssueLogger l)
projected - The projected choicerole - The rolel - The journalprotected static Object extractCommonBehaviour(LChoice projected, RoleDecl role, IssueLogger l)
projected - The projected choicerole - The rolel - The journalCopyright © 2014. All Rights Reserved.