/** * @see org.andromda.metafacades.uml.PseudostateFacade#isShallowHistory() */ @Override protected boolean handleIsShallowHistory() { return this.metaObject.getKind().getValue() == (PseudostateKind.SHALLOW_HISTORY); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Pseudostate getEntry(String name, boolean ignoreCase) { entryLoop : for (Pseudostate entry : getEntries()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(entry.getName()) : name.equals(entry.getName()))) continue entryLoop; return entry; } return null; }
if (cpr.getEntries() != null) { for (Pseudostate cp : cpr.getEntries()) { StateData<String, String> cpStateData = new StateData<>(parent, regionId, cp.getName(), false); cpStateData.setPseudoStateKind(PseudoStateKind.ENTRY); stateDatas.add(cpStateData); StateData<String, String> cpStateData = new StateData<>(parent, regionId, cp.getName(), false); cpStateData.setPseudoStateKind(PseudoStateKind.EXIT); stateDatas.add(cpStateData); if (cp.getKind() == PseudostateKind.ENTRY_POINT_LITERAL) { kind = PseudoStateKind.ENTRY; } else if (cp.getKind() == PseudostateKind.EXIT_POINT_LITERAL) { kind = PseudoStateKind.EXIT; StateData<String, String> cpStateData = new StateData<>(parent, regionId, cp.getName(), false); cpStateData.setPseudoStateKind(kind); stateDatas.add(cpStateData); String parent = null; String regionId = null; if (state.getContainer().getOwner() instanceof State) { parent = ((State)state.getContainer().getOwner()).getName(); if (state.getOwner() instanceof Region) { regionId = ((Region)state.getOwner()).getName(); if (state.getKind() == PseudostateKind.CHOICE_LITERAL) { StateData<String, String> cpStateData = new StateData<>(parent, regionId, state.getName(), false);
} else if (vertex instanceof Pseudostate) { Pseudostate pseudostate = (Pseudostate) vertex; PseudostateKind kind = pseudostate.getKind(); return pseudostate.getStateMachine();
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isDecisionPoint() */ @Override protected boolean handleIsDecisionPoint() { return (this.isChoice() || this.isJunction()) && this.metaObject.getOutgoings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isMergePoint() */ @Override protected boolean handleIsMergePoint() { return (this.isChoice() || this.isJunction()) && this.metaObject.getIncomings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isDecisionPoint() */ @Override protected boolean handleIsDecisionPoint() { return (this.isChoice() || this.isJunction()) && this.metaObject.getOutgoings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isMergePoint() */ @Override protected boolean handleIsMergePoint() { return (this.isChoice() || this.isJunction()) && this.metaObject.getIncomings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isFork() */ @Override protected boolean handleIsFork() { return this.metaObject.getKind().getValue() == (PseudostateKind.FORK); }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isSplit() */ @Override protected boolean handleIsSplit() { return (this.isJoin() || this.isFork()) && this.metaObject.getOutgoings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isCollect() */ @Override protected boolean handleIsCollect() { return (this.isJoin() || this.isFork()) && this.metaObject.getIncomings().size() > 1; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Pseudostate getExit(String name, boolean ignoreCase) { exitLoop : for (Pseudostate exit : getExits()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(exit.getName()) : name.equals(exit.getName()))) continue exitLoop; return exit; } return null; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isInitialState() */ @Override protected boolean handleIsInitialState() { return this.metaObject.getKind().getValue() == (PseudostateKind.INITIAL); }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isSplit() */ @Override protected boolean handleIsSplit() { return (this.isJoin() || this.isFork()) && this.metaObject.getOutgoings().size() > 1; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isCollect() */ @Override protected boolean handleIsCollect() { return (this.isJoin() || this.isFork()) && this.metaObject.getIncomings().size() > 1; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Pseudostate getConnectionPoint(String name, boolean ignoreCase, boolean createOnDemand) { connectionPointLoop : for (Pseudostate connectionPoint : getConnectionPoints()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(connectionPoint.getName()) : name.equals(connectionPoint.getName()))) continue connectionPointLoop; return connectionPoint; } return createOnDemand ? createConnectionPoint(name) : null; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isJunction() */ @Override protected boolean handleIsJunction() { return this.metaObject.getKind().getValue() == (PseudostateKind.JUNCTION); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Pseudostate getConnectionPoint(String name, boolean ignoreCase, boolean createOnDemand) { connectionPointLoop : for (Pseudostate connectionPoint : getConnectionPoints()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(connectionPoint.getName()) : name.equals(connectionPoint.getName()))) continue connectionPointLoop; return connectionPoint; } return createOnDemand ? createConnectionPoint(name) : null; }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isJoin() */ @Override protected boolean handleIsJoin() { return this.metaObject.getKind().getValue() == (PseudostateKind.JOIN); }
/** * @see org.andromda.metafacades.uml.PseudostateFacade#isChoice() */ @Override protected boolean handleIsChoice() { return this.metaObject.getKind().getValue() == (PseudostateKind.CHOICE); }