Coverage Report - org.argouml.model.euml.StateMachinesFactoryEUMLImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
StateMachinesFactoryEUMLImpl
0%
0/41
N/A
1.75
 
 1  
 // $Id: StateMachinesFactoryEUMLImpl.java 18708 2010-08-30 16:26:07Z 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 org.argouml.model.AbstractModelFactory;
 15  
 import org.argouml.model.StateMachinesFactory;
 16  
 import org.eclipse.uml2.uml.BehavioredClassifier;
 17  
 import org.eclipse.uml2.uml.Classifier;
 18  
 import org.eclipse.uml2.uml.Element;
 19  
 import org.eclipse.uml2.uml.ProtocolStateMachine;
 20  
 import org.eclipse.uml2.uml.StateMachine;
 21  
 import org.eclipse.uml2.uml.UMLFactory;
 22  
 
 23  
 /**
 24  
  * The implementation of the StateMachinesFactory for EUML2.
 25  
  */
 26  
 class StateMachinesFactoryEUMLImpl implements StateMachinesFactory,
 27  
         AbstractModelFactory {
 28  
 
 29  
     /**
 30  
      * The model implementation.
 31  
      */
 32  
     private EUMLModelImplementation modelImpl;
 33  
 
 34  
     /**
 35  
      * Constructor.
 36  
      * 
 37  
      * @param implementation
 38  
      *            The ModelImplementation.
 39  
      */
 40  0
     public StateMachinesFactoryEUMLImpl(EUMLModelImplementation implementation) {
 41  0
         modelImpl = implementation;
 42  0
     }
 43  
 
 44  
     public Object buildCallEvent(Object ns) {
 45  
         // TODO: Auto-generated method stub
 46  0
         throw new NotYetImplementedException();
 47  
 
 48  
     }
 49  
 
 50  
     public Object buildCallEvent(Object trans, String name, Object ns) {
 51  
         // TODO: Auto-generated method stub
 52  0
         throw new NotYetImplementedException();
 53  
 
 54  
     }
 55  
 
 56  
     public Object buildChangeEvent(Object ns) {
 57  
         // TODO: Auto-generated method stub
 58  0
         throw new NotYetImplementedException();
 59  
 
 60  
     }
 61  
 
 62  
     public Object buildChangeEvent(String s, Object ns) {
 63  
         // TODO: Auto-generated method stub
 64  0
         throw new NotYetImplementedException();
 65  
 
 66  
     }
 67  
 
 68  
     public Object buildCompositeState(Object compositeState) {
 69  
         // TODO: Auto-generated method stub
 70  0
         throw new NotYetImplementedException();
 71  
 
 72  
     }
 73  
 
 74  
     public Object buildCompositeStateOnStateMachine(Object statemachine) {
 75  
         // TODO: Auto-generated method stub
 76  0
         throw new NotYetImplementedException();
 77  
 
 78  
     }
 79  
 
 80  
     public Object buildFinalState(Object compositeState) {
 81  
         // TODO: Auto-generated method stub
 82  0
         throw new NotYetImplementedException();
 83  
 
 84  
     }
 85  
 
 86  
     public Object buildGuard(Object transition) {
 87  
         // TODO: Auto-generated method stub
 88  0
         throw new NotYetImplementedException();
 89  
 
 90  
     }
 91  
 
 92  
     public Object buildInternalTransition(Object state) {
 93  
         // TODO: Auto-generated method stub
 94  0
         throw new NotYetImplementedException();
 95  
 
 96  
     }
 97  
 
 98  
     public Object buildPseudoState(Object compositeState) {
 99  
         // TODO: Auto-generated method stub
 100  0
         throw new NotYetImplementedException();
 101  
 
 102  
     }
 103  
 
 104  
     public Object buildSignalEvent(Object ns) {
 105  
         // TODO: Auto-generated method stub
 106  0
         throw new NotYetImplementedException();
 107  
 
 108  
     }
 109  
 
 110  
     public Object buildSignalEvent(String name, Object ns) {
 111  
         // TODO: Auto-generated method stub
 112  0
         throw new NotYetImplementedException();
 113  
 
 114  
     }
 115  
 
 116  
     public Object buildSimpleState(Object compositeState) {
 117  
         // TODO: Auto-generated method stub
 118  0
         throw new NotYetImplementedException();
 119  
 
 120  
     }
 121  
 
 122  
     public Object buildStateMachine(Object oContext) {
 123  0
         BehavioredClassifier bc = (BehavioredClassifier) oContext;
 124  0
         StateMachine machine = (StateMachine) createStateMachine();
 125  0
         bc.setClassifierBehavior(machine);
 126  
         
 127  0
         return machine;
 128  
     }
 129  
 
 130  
     public Object buildStubState(Object compositeState) {
 131  
         // TODO: Auto-generated method stub
 132  0
         throw new NotYetImplementedException();
 133  
 
 134  
     }
 135  
 
 136  
     public Object buildSubmachineState(Object compositeState) {
 137  
         // TODO: Auto-generated method stub
 138  0
         throw new NotYetImplementedException();
 139  
 
 140  
     }
 141  
 
 142  
     public Object buildSynchState(Object compositeState) {
 143  
         // TODO: Auto-generated method stub
 144  0
         throw new NotYetImplementedException();
 145  
 
 146  
     }
 147  
 
 148  
     public Object buildTimeEvent(Object ns) {
 149  
         // TODO: Auto-generated method stub
 150  0
         throw new NotYetImplementedException();
 151  
 
 152  
     }
 153  
 
 154  
     public Object buildTimeEvent(String s, Object ns) {
 155  
         // TODO: Auto-generated method stub
 156  0
         throw new NotYetImplementedException();
 157  
 
 158  
     }
 159  
 
 160  
     public Object buildTransition(Object owningState, Object source, Object dest) {
 161  
         // TODO: Auto-generated method stub
 162  0
         throw new NotYetImplementedException();
 163  
 
 164  
     }
 165  
 
 166  
     public Object buildTransition(Object source, Object target) {
 167  
         // TODO: Auto-generated method stub
 168  0
         throw new NotYetImplementedException();
 169  
 
 170  
     }
 171  
 
 172  
     public Object createCallEvent() {
 173  0
         return UMLFactory.eINSTANCE.createCallEvent();
 174  
     }
 175  
 
 176  
     public Object createChangeEvent() {
 177  0
         return UMLFactory.eINSTANCE.createChangeEvent();
 178  
     }
 179  
 
 180  
     public Object createCompositeState() {
 181  
         // TODO: Auto-generated method stub
 182  0
         throw new NotYetImplementedException();
 183  
 
 184  
     }
 185  
 
 186  
     public Object createFinalState() {
 187  
         // TODO: Auto-generated method stub
 188  0
         throw new NotYetImplementedException();
 189  
 
 190  
     }
 191  
 
 192  
     public Object createGuard() {
 193  
         // TODO: Auto-generated method stub
 194  0
         throw new NotYetImplementedException();
 195  
 
 196  
     }
 197  
 
 198  
     public Object createPseudostate() {
 199  0
         return UMLFactory.eINSTANCE.createPseudostate();
 200  
     }
 201  
 
 202  
     public Object createSignalEvent() {
 203  0
         return UMLFactory.eINSTANCE.createSignalEvent();
 204  
     }
 205  
 
 206  
     public Object createSimpleState() {
 207  
         // TODO: Auto-generated method stub
 208  0
         throw new NotYetImplementedException();
 209  
 
 210  
     }
 211  
 
 212  
     public Object createStateMachine() {
 213  0
         return UMLFactory.eINSTANCE.createStateMachine();
 214  
     }
 215  
 
 216  
     public Object createStubState() {
 217  
         // TODO: Auto-generated method stub
 218  0
         throw new NotYetImplementedException();
 219  
 
 220  
     }
 221  
 
 222  
     public Object createSubmachineState() {
 223  
         // TODO: Auto-generated method stub
 224  0
         throw new NotYetImplementedException();
 225  
 
 226  
     }
 227  
 
 228  
     public Object createSynchState() {
 229  
         // TODO: Auto-generated method stub
 230  0
         throw new NotYetImplementedException();
 231  
 
 232  
     }
 233  
 
 234  
     public Object createTimeEvent() {
 235  0
         return UMLFactory.eINSTANCE.createTimeEvent();
 236  
     }
 237  
 
 238  
     public Object createTransition() {
 239  0
         return UMLFactory.eINSTANCE.createTransition();
 240  
     }
 241  
 
 242  
 }