Coverage Report - org.argouml.model.euml.StateMachinesHelperEUMLImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
StateMachinesHelperEUMLImpl
0%
0/49
0%
0/10
2.05
 
 1  
 // $Id: StateMachinesHelperEUMLImpl.java 18681 2010-08-24 23:26:18Z bobtarling $
 2  
 /*******************************************************************************
 3  
  * Copyright (c) 2007,2010 Tom Morris and other contributors
 4  
  * All rights reserved. This program and the accompanying materials
 5  
  * are made available under the terms of the Eclipse Public License v1.0
 6  
  * which accompanies this distribution, and is available at
 7  
  * http://www.eclipse.org/legal/epl-v10.html
 8  
  *
 9  
  * Contributors:
 10  
  *    Tom Morris - initial framework 
 11  
  *******************************************************************************/
 12  
 package org.argouml.model.euml;
 13  
 
 14  
 import java.util.Collection;
 15  
 
 16  
 import org.argouml.model.InvalidElementException;
 17  
 import org.argouml.model.Model;
 18  
 import org.argouml.model.StateMachinesHelper;
 19  
 import org.eclipse.uml2.uml.Classifier;
 20  
 import org.eclipse.uml2.uml.State;
 21  
 
 22  
 /**
 23  
  * The implementation of the StateMachinesHelper for EUML2.
 24  
  */
 25  
 class StateMachinesHelperEUMLImpl implements StateMachinesHelper {
 26  
 
 27  
     /**
 28  
      * The model implementation.
 29  
      */
 30  
     private EUMLModelImplementation modelImpl;
 31  
 
 32  
     /**
 33  
      * Constructor.
 34  
      * 
 35  
      * @param implementation
 36  
      *            The ModelImplementation.
 37  
      */
 38  0
     public StateMachinesHelperEUMLImpl(EUMLModelImplementation implementation) {
 39  0
         modelImpl = implementation;
 40  0
     }
 41  
 
 42  
     public void addDeferrableEvent(Object state, Object deferrableEvent) {
 43  
         // TODO: Auto-generated method stub
 44  0
         throw new NotYetImplementedException();
 45  
 
 46  
     }
 47  
 
 48  
     public void addSubvertex(Object handle, Object subvertex) {
 49  
         // TODO: Auto-generated method stub
 50  0
         throw new NotYetImplementedException();
 51  
 
 52  
     }
 53  
 
 54  
     public Object findNamespaceForEvent(Object trans, Object model) {
 55  
         // TODO: Auto-generated method stub
 56  0
         throw new NotYetImplementedException();
 57  
 
 58  
     }
 59  
 
 60  
     public Object findOperationByName(Object trans, String opname) {
 61  
         // TODO: Auto-generated method stub
 62  0
         throw new NotYetImplementedException();
 63  
 
 64  
     }
 65  
 
 66  
     public Collection getAllPossibleStatemachines(Object model,
 67  
             Object oSubmachineState) {
 68  
         // TODO: Auto-generated method stub
 69  0
         throw new NotYetImplementedException();
 70  
 
 71  
     }
 72  
 
 73  
     public Collection getAllPossibleSubvertices(Object oState) {
 74  
         // TODO: Auto-generated method stub
 75  0
         throw new NotYetImplementedException();
 76  
 
 77  
     }
 78  
 
 79  
     public Collection getAllSubStates(Object compState) {
 80  
         // TODO: Auto-generated method stub
 81  0
         throw new NotYetImplementedException();
 82  
 
 83  
     }
 84  
 
 85  
     public Object getDestination(Object trans) {
 86  
         // TODO: Auto-generated method stub
 87  0
         throw new NotYetImplementedException();
 88  
 
 89  
     }
 90  
 
 91  
     public Collection getOutgoingStates(Object ostatevertex) {
 92  
         // TODO: Auto-generated method stub
 93  0
         throw new NotYetImplementedException();
 94  
 
 95  
     }
 96  
 
 97  
     public String getPath(Object o) {
 98  
         // TODO: Auto-generated method stub
 99  0
         throw new NotYetImplementedException();
 100  
 
 101  
     }
 102  
 
 103  
     public Object getSource(Object trans) {
 104  
         // TODO: Auto-generated method stub
 105  0
         throw new NotYetImplementedException();
 106  
 
 107  
     }
 108  
 
 109  
     public Object getStateMachine(Object handle) {
 110  0
         if (handle == null) {
 111  0
             throw new IllegalArgumentException("bad argument to "
 112  
                     + "getStateMachine() - " + handle);
 113  
         }
 114  0
         Object container =
 115  
             modelImpl.getFacade().getModelElementContainer(handle);
 116  0
         while (container != null) {
 117  0
             if (Model.getFacade().isAStateMachine(container)) {
 118  0
                 return container;
 119  
             }
 120  0
             container =
 121  
                 modelImpl.getFacade()
 122  
                     .getModelElementContainer(container);
 123  
         }
 124  
         /* In this case, either the container was not set,
 125  
          * or it was not contained in a statemachine.
 126  
          */
 127  0
         return null;
 128  
     }
 129  
 
 130  
     public Object getStatebyName(String path, Object container) {
 131  
         // TODO: Auto-generated method stub
 132  0
         throw new NotYetImplementedException();
 133  
 
 134  
     }
 135  
 
 136  
     public Object getTop(Object sm) {
 137  
         // TODO: Auto-generated method stub
 138  0
         throw new NotYetImplementedException();
 139  
 
 140  
     }
 141  
 
 142  
     public boolean isAddingStatemachineAllowed(Object context) {
 143  0
         return (context instanceof Classifier);
 144  
     }
 145  
 
 146  
     public boolean isTopState(Object o) {
 147  
         // TODO: This needs to be double checked. - tfm
 148  0
         return o instanceof State && ((State) o).getOwner() == null;
 149  
     }
 150  
 
 151  
     public void removeDeferrableEvent(Object state, Object deferrableEvent) {
 152  
         // TODO: Auto-generated method stub
 153  0
         throw new NotYetImplementedException();
 154  
 
 155  
     }
 156  
 
 157  
     public void removeSubvertex(Object handle, Object subvertex) {
 158  
         // TODO: Auto-generated method stub
 159  0
         throw new NotYetImplementedException();
 160  
 
 161  
     }
 162  
 
 163  
     public void setBound(Object handle, int bound) {
 164  
         // TODO: Auto-generated method stub
 165  0
         throw new NotYetImplementedException();
 166  
 
 167  
     }
 168  
 
 169  
     public void setChangeExpression(Object handle, Object value) {
 170  
         // TODO: Auto-generated method stub
 171  0
         throw new NotYetImplementedException();
 172  
 
 173  
     }
 174  
 
 175  
     public void setConcurrent(Object handle, boolean concurrent) {
 176  
         // TODO: Auto-generated method stub
 177  0
         throw new NotYetImplementedException();
 178  
 
 179  
     }
 180  
 
 181  
     public void setContainer(Object handle, Object compositeState) {
 182  
         // TODO: Auto-generated method stub
 183  0
         throw new NotYetImplementedException();
 184  
 
 185  
     }
 186  
 
 187  
     public void setContext(Object statemachine, Object modelElement) {
 188  
         // TODO: Auto-generated method stub
 189  0
         throw new NotYetImplementedException();
 190  
 
 191  
     }
 192  
 
 193  
     public void setDoActivity(Object handle, Object value) {
 194  
         // TODO: Auto-generated method stub
 195  0
         throw new NotYetImplementedException();
 196  
 
 197  
     }
 198  
 
 199  
     public void setEffect(Object handle, Object value) {
 200  
         // TODO: Auto-generated method stub
 201  0
         throw new NotYetImplementedException();
 202  
 
 203  
     }
 204  
 
 205  
     public void setEntry(Object handle, Object value) {
 206  
         // TODO: Auto-generated method stub
 207  0
         throw new NotYetImplementedException();
 208  
 
 209  
     }
 210  
 
 211  
     public void setEventAsTrigger(Object transition, Object event) {
 212  
         // TODO: Auto-generated method stub
 213  0
         throw new NotYetImplementedException();
 214  
 
 215  
     }
 216  
 
 217  
     public void setExit(Object handle, Object value) {
 218  
         // TODO: Auto-generated method stub
 219  0
         throw new NotYetImplementedException();
 220  
 
 221  
     }
 222  
 
 223  
     public void setExpression(Object handle, Object value) {
 224  
         // TODO: Auto-generated method stub
 225  0
         throw new NotYetImplementedException();
 226  
 
 227  
     }
 228  
 
 229  
     public void setGuard(Object handle, Object guard) {
 230  
         // TODO: Auto-generated method stub
 231  0
         throw new NotYetImplementedException();
 232  
 
 233  
     }
 234  
 
 235  
     public void setInternalTransitions(Object handle, Collection intTrans) {
 236  
         // TODO: Auto-generated method stub
 237  0
         throw new NotYetImplementedException();
 238  
 
 239  
     }
 240  
 
 241  
     public void setReferenceState(Object o, String referenced) {
 242  
         // TODO: Auto-generated method stub
 243  0
         throw new NotYetImplementedException();
 244  
 
 245  
     }
 246  
 
 247  
     public void setSource(Object handle, Object state) {
 248  
         // TODO: Auto-generated method stub
 249  0
         throw new NotYetImplementedException();
 250  
 
 251  
     }
 252  
 
 253  
     public void setState(Object handle, Object element) {
 254  
         // TODO: Auto-generated method stub
 255  0
         throw new NotYetImplementedException();
 256  
 
 257  
     }
 258  
 
 259  
     public void setStateMachine(Object handle, Object stm) {
 260  
         // TODO: Auto-generated method stub
 261  0
         throw new NotYetImplementedException();
 262  
 
 263  
     }
 264  
 
 265  
     public void setStatemachineAsSubmachine(Object oSubmachineState,
 266  
             Object oStatemachine) {
 267  
         // TODO: Auto-generated method stub
 268  0
         throw new NotYetImplementedException();
 269  
 
 270  
     }
 271  
 
 272  
     public void setSubvertices(Object handle, Collection subvertices) {
 273  
         // TODO: Auto-generated method stub
 274  0
         throw new NotYetImplementedException();
 275  
 
 276  
     }
 277  
 
 278  
     public void setTrigger(Object handle, Object event) {
 279  
         // TODO: Auto-generated method stub
 280  0
         throw new NotYetImplementedException();
 281  
 
 282  
     }
 283  
 
 284  
     public void setWhen(Object handle, Object value) {
 285  
         // TODO: Auto-generated method stub
 286  0
         throw new NotYetImplementedException();
 287  
 
 288  
     }
 289  
 
 290  
 }