Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.ActivityGraphFacade


    protected List handleGetDecisions()
    {
        final List decisions = new ArrayList();

        final ActivityGraphFacade graph = this.getFirstActivityGraph();
        if (graph != null)
        {
            final Collection pseudostates = graph.getPseudostates();
            for (final Iterator pseudostateIterator = pseudostates.iterator(); pseudostateIterator.hasNext();)
            {
                final PseudostateFacade pseudostate = (PseudostateFacade) pseudostateIterator.next();
                if (pseudostate.isDecisionPoint())
                {
View Full Code Here


    protected List handleGetForks()
    {
        final List forks = new ArrayList();

        final ActivityGraphFacade graph = this.getFirstActivityGraph();
        if (graph != null)
        {
            final Collection pseudostates = graph.getPseudostates();
            for (final Iterator pseudostateIterator = pseudostates.iterator(); pseudostateIterator.hasNext();)
            {
                final PseudostateFacade pseudostate = (PseudostateFacade) pseudostateIterator.next();
                if (pseudostate.isSplit())
                {
View Full Code Here

    protected List handleGetJoins()
    {
        final List joins = new ArrayList();

        final ActivityGraphFacade graph = this.getFirstActivityGraph();
        if (graph != null)
        {
            final Collection pseudostates = graph.getPseudostates();
            for (final Iterator pseudostateIterator = pseudostates.iterator(); pseudostateIterator.hasNext();)
            {
                final PseudostateFacade pseudostate = (PseudostateFacade) pseudostateIterator.next();
                if (pseudostate.isCollect())
                {
View Full Code Here

        final Collection actionSet = new LinkedHashSet();

        final StateMachineFacade stateMachineFacade = this.getStateMachine();
        if (stateMachineFacade instanceof ActivityGraphFacade)
        {
            final ActivityGraphFacade activityGraph = (ActivityGraphFacade)stateMachineFacade;
            final UseCaseFacade useCase = activityGraph.getUseCase();

            if (useCase instanceof StrutsUseCase)
            {
                final Collection actions = ((StrutsUseCase)useCase).getActions();
                for (final Iterator actionIterator = actions.iterator(); actionIterator.hasNext();)
View Full Code Here

     * Overwritten because we want to be able to make use of the AndroMDA tagged value for use-case
     * to activity graph linking.
     */
    public ActivityGraphFacade getFirstActivityGraph()
    {
        ActivityGraphFacade activityGraph;

        final Object activity = this.findTaggedValue(UMLProfile.TAGGEDVALUE_PRESENTATION_USECASE_ACTIVITY);
        if (activity == null)
        {
            activityGraph = super.getFirstActivityGraph();
View Full Code Here

            internalActions = new ArrayList();

            final StateMachineFacade stateMachine = getOwner().getStateMachineContext();
            if (stateMachine instanceof ActivityGraphFacade)
            {
                final ActivityGraphFacade graph = (ActivityGraphFacade)stateMachine;
                final Collection states = graph.getStates();
                for (final Iterator stateIterator = states.iterator(); stateIterator.hasNext();)
                {
                    final StateFacade state = (StateFacade)stateIterator.next();
                    final Collection events = state.getDeferrableEvents();
                    for (final Iterator eventIterator = events.iterator(); eventIterator.hasNext();)
                    {
                        final EventFacade event = (EventFacade)eventIterator.next();
                        if (event instanceof JBpmAction)
                        {
                            final JBpmAction action = (JBpmAction)event;
                            if (this.equals(action.getOperation()))
                            {
                                internalActions.add(event);
                            }
                        }
                    }
                }

                final Collection transitions = graph.getTransitions();
                for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
                {
                    final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
                    final EventFacade event = transition.getTrigger();
                    if (event != null)
View Full Code Here

     * @see org.andromda.metafacades.uml.FrontEndUseCase#getViews()
     */
    protected List handleGetViews()
    {
        List views;
        final ActivityGraphFacade graph = this.getActivityGraph();
        if (graph == null)
        {
            views = Collections.EMPTY_LIST;
        }
        else
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.FrontEndUseCase#getActivityGraph()
     */
    protected java.lang.Object handleGetActivityGraph()
    {
        ActivityGraphFacade activityGraph = null;

        // - in case there is a tagged value pointing to an activity graph, and this graph is found,
        //   return it.
        final Object activity = this.findTaggedValue(UMLProfile.TAGGEDVALUE_PRESENTATION_USECASE_ACTIVITY);
        if (activity != null)
View Full Code Here

     * @see org.andromda.metafacades.uml.FrontEndUseCase#getViews()
     */
    protected List handleGetViews()
    {
        List views;
        final ActivityGraphFacade graph = this.getActivityGraph();
        if (graph == null)
        {
            views = Collections.EMPTY_LIST;
        }
        else
View Full Code Here

     */
    protected org.andromda.metafacades.uml.ActivityGraphFacade handleFindActivityGraphByNameAndStereotype(
        final java.lang.String name,
        final java.lang.String stereotypeName)
    {
        ActivityGraphFacade agfFound = null;

        Collection agfCollection =
            UmlUtilities.getAllMetaObjectsInstanceOf(
                StateMachine.class,
                UmlUtilities.findModel(this.metaObject));

        for (Iterator it = agfCollection.iterator(); it.hasNext() && agfFound == null;)
        {
            ActivityGraphFacade agf = (ActivityGraphFacade)this.shieldedElement(it.next());
            if (agf.getName().equals(name))
            {
              if(stereotypeName == null || agf.hasStereotype(stereotypeName))
              {
                agfFound = agf;
              }
            }
        }
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.uml.ActivityGraphFacade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.