| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package LqnCore.impl; |
| 8 | |
| 9 | import LqnCore.*; |
| 10 | |
| 11 | import java.math.BigInteger; |
| 12 | |
| 13 | import java.util.ArrayList; |
| 14 | import java.util.List; |
| 15 | import java.util.StringTokenizer; |
| 16 | |
| 17 | import org.eclipse.emf.ecore.EClass; |
| 18 | import org.eclipse.emf.ecore.EDataType; |
| 19 | import org.eclipse.emf.ecore.EObject; |
| 20 | import org.eclipse.emf.ecore.EPackage; |
| 21 | |
| 22 | import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| 23 | |
| 24 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| 25 | |
| 26 | import org.eclipse.emf.ecore.util.Diagnostician; |
| 27 | |
| 28 | import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; |
| 29 | import org.eclipse.emf.ecore.xml.type.XMLTypePackage; |
| 30 | |
| 31 | /** |
| 32 | * <!-- begin-user-doc --> |
| 33 | * An implementation of the model <b>Factory</b>. |
| 34 | * <!-- end-user-doc --> |
| 35 | * @generated |
| 36 | */ |
| 37 | public class LqnCoreFactoryImpl extends EFactoryImpl implements LqnCoreFactory { |
| 38 | /** |
| 39 | * Creates the default factory implementation. |
| 40 | * <!-- begin-user-doc --> |
| 41 | * <!-- end-user-doc --> |
| 42 | * @generated |
| 43 | */ |
| 44 | public static LqnCoreFactory init() { |
| 45 | try { |
| 46 | LqnCoreFactory theLqnCoreFactory = (LqnCoreFactory)EPackage.Registry.INSTANCE.getEFactory("file:/C:/Program%20Files/LQN%20Solvers/lqn-core.xsd"); |
| 47 | if (theLqnCoreFactory != null) { |
| 48 | return theLqnCoreFactory; |
| 49 | } |
| 50 | } |
| 51 | catch (Exception exception) { |
| 52 | EcorePlugin.INSTANCE.log(exception); |
| 53 | } |
| 54 | return new LqnCoreFactoryImpl(); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Creates an instance of the factory. |
| 59 | * <!-- begin-user-doc --> |
| 60 | * <!-- end-user-doc --> |
| 61 | * @generated |
| 62 | */ |
| 63 | public LqnCoreFactoryImpl() { |
| 64 | super(); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * <!-- begin-user-doc --> |
| 69 | * <!-- end-user-doc --> |
| 70 | * @generated |
| 71 | */ |
| 72 | @Override |
| 73 | public EObject create(EClass eClass) { |
| 74 | switch (eClass.getClassifierID()) { |
| 75 | case LqnCorePackage.ACTIVITY_DEF_BASE: return createActivityDefBase(); |
| 76 | case LqnCorePackage.ACTIVITY_DEF_TYPE: return createActivityDefType(); |
| 77 | case LqnCorePackage.ACTIVITY_GRAPH_BASE: return createActivityGraphBase(); |
| 78 | case LqnCorePackage.ACTIVITY_LIST_TYPE: return createActivityListType(); |
| 79 | case LqnCorePackage.ACTIVITY_LOOP_LIST_TYPE: return createActivityLoopListType(); |
| 80 | case LqnCorePackage.ACTIVITY_LOOP_TYPE: return createActivityLoopType(); |
| 81 | case LqnCorePackage.ACTIVITY_MAKING_CALL_TYPE: return createActivityMakingCallType(); |
| 82 | case LqnCorePackage.ACTIVITY_OR_TYPE: return createActivityOrType(); |
| 83 | case LqnCorePackage.ACTIVITY_PHASES_TYPE: return createActivityPhasesType(); |
| 84 | case LqnCorePackage.ACTIVITY_TYPE: return createActivityType(); |
| 85 | case LqnCorePackage.AND_JOIN_LIST_TYPE: return createAndJoinListType(); |
| 86 | case LqnCorePackage.ASYNCH_CALL_TYPE: return createAsynchCallType(); |
| 87 | case LqnCorePackage.BIND_TYPE: return createBindType(); |
| 88 | case LqnCorePackage.CALL_LIST_TYPE: return createCallListType(); |
| 89 | case LqnCorePackage.DOCUMENT_ROOT: return createDocumentRoot(); |
| 90 | case LqnCorePackage.ENTRY_ACTIVITY_DEF_TYPE: return createEntryActivityDefType(); |
| 91 | case LqnCorePackage.ENTRY_ACTIVITY_GRAPH: return createEntryActivityGraph(); |
| 92 | case LqnCorePackage.ENTRY_MAKING_CALL_TYPE: return createEntryMakingCallType(); |
| 93 | case LqnCorePackage.ENTRY_TYPE: return createEntryType(); |
| 94 | case LqnCorePackage.FIRST_PLOT_TYPE: return createFirstPlotType(); |
| 95 | case LqnCorePackage.HISTOGRAM_BIN_TYPE: return createHistogramBinType(); |
| 96 | case LqnCorePackage.IN_PORT_TYPE: return createInPortType(); |
| 97 | case LqnCorePackage.INTERFACE_TYPE: return createInterfaceType(); |
| 98 | case LqnCorePackage.LQN_CORE_TYPE: return createLqnCoreType(); |
| 99 | case LqnCorePackage.LQN_MODEL_TYPE: return createLqnModelType(); |
| 100 | case LqnCorePackage.MAKING_CALL_TYPE: return createMakingCallType(); |
| 101 | case LqnCorePackage.OR_LIST_TYPE: return createOrListType(); |
| 102 | case LqnCorePackage.OUT_PORT_TYPE: return createOutPortType(); |
| 103 | case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE: return createOutputDistributionType(); |
| 104 | case LqnCorePackage.OUTPUT_ENTRY_DISTRIBUTION_TYPE: return createOutputEntryDistributionType(); |
| 105 | case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY: return createOutputResultForwardingANDJoinDelay(); |
| 106 | case LqnCorePackage.OUTPUT_RESULT_TYPE: return createOutputResultType(); |
| 107 | case LqnCorePackage.PARAMETER_TYPE: return createParameterType(); |
| 108 | case LqnCorePackage.PARA_TYPE: return createParaType(); |
| 109 | case LqnCorePackage.PHASE_ACTIVITIES: return createPhaseActivities(); |
| 110 | case LqnCorePackage.PLOT_CONTROL_TYPE: return createPlotControlType(); |
| 111 | case LqnCorePackage.PLOT_TYPE: return createPlotType(); |
| 112 | case LqnCorePackage.PORT_BINDING_TYPE: return createPortBindingType(); |
| 113 | case LqnCorePackage.PRAGMA_TYPE: return createPragmaType(); |
| 114 | case LqnCorePackage.PRECEDENCE_TYPE: return createPrecedenceType(); |
| 115 | case LqnCorePackage.PROCESSOR_BINDING_TYPE: return createProcessorBindingType(); |
| 116 | case LqnCorePackage.PROCESSOR_TYPE: return createProcessorType(); |
| 117 | case LqnCorePackage.REPLY_ACTIVITY_TYPE: return createReplyActivityType(); |
| 118 | case LqnCorePackage.REPLY_ENTRY_TYPE: return createReplyEntryType(); |
| 119 | case LqnCorePackage.RESULT_CONF95_TYPE: return createResultConf95Type(); |
| 120 | case LqnCorePackage.RESULT_CONF95_TYPE1: return createResultConf95Type1(); |
| 121 | case LqnCorePackage.RESULT_CONF99_TYPE: return createResultConf99Type(); |
| 122 | case LqnCorePackage.RESULT_CONF99_TYPE1: return createResultConf99Type1(); |
| 123 | case LqnCorePackage.RESULT_GENERAL_TYPE: return createResultGeneralType(); |
| 124 | case LqnCorePackage.RUN_CONTROL_TYPE: return createRunControlType(); |
| 125 | case LqnCorePackage.SERVICE_TYPE: return createServiceType(); |
| 126 | case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE: return createSingleActivityListType(); |
| 127 | case LqnCorePackage.SLOT_TYPE: return createSlotType(); |
| 128 | case LqnCorePackage.SOLVER_PARAMS_TYPE: return createSolverParamsType(); |
| 129 | case LqnCorePackage.SYNCH_CALL_TYPE: return createSynchCallType(); |
| 130 | case LqnCorePackage.TASK_ACTIVITY_GRAPH: return createTaskActivityGraph(); |
| 131 | case LqnCorePackage.TASK_TYPE: return createTaskType(); |
| 132 | default: |
| 133 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * <!-- begin-user-doc --> |
| 139 | * <!-- end-user-doc --> |
| 140 | * @generated |
| 141 | */ |
| 142 | @Override |
| 143 | public Object createFromString(EDataType eDataType, String initialValue) { |
| 144 | switch (eDataType.getClassifierID()) { |
| 145 | case LqnCorePackage.AXIS_TYPE: |
| 146 | return createAxisTypeFromString(eDataType, initialValue); |
| 147 | case LqnCorePackage.CALL_ORDER_TYPE: |
| 148 | return createCallOrderTypeFromString(eDataType, initialValue); |
| 149 | case LqnCorePackage.SCHEDULING_TYPE: |
| 150 | return createSchedulingTypeFromString(eDataType, initialValue); |
| 151 | case LqnCorePackage.SEMAPHORE_TYPE: |
| 152 | return createSemaphoreTypeFromString(eDataType, initialValue); |
| 153 | case LqnCorePackage.TASK_OPTION_TYPE: |
| 154 | return createTaskOptionTypeFromString(eDataType, initialValue); |
| 155 | case LqnCorePackage.TASK_SCHEDULING_TYPE: |
| 156 | return createTaskSchedulingTypeFromString(eDataType, initialValue); |
| 157 | case LqnCorePackage.TYPE_TYPE: |
| 158 | return createTypeTypeFromString(eDataType, initialValue); |
| 159 | case LqnCorePackage.VALID_TYPE: |
| 160 | return createValidTypeFromString(eDataType, initialValue); |
| 161 | case LqnCorePackage.XML_DEBUG_TYPE: |
| 162 | return createXmlDebugTypeFromString(eDataType, initialValue); |
| 163 | case LqnCorePackage.AXIS_TYPE_OBJECT: |
| 164 | return createAxisTypeObjectFromString(eDataType, initialValue); |
| 165 | case LqnCorePackage.CALL_ORDER_TYPE_OBJECT: |
| 166 | return createCallOrderTypeObjectFromString(eDataType, initialValue); |
| 167 | case LqnCorePackage.CONNECT_FROM_TYPE: |
| 168 | return createConnectFromTypeFromString(eDataType, initialValue); |
| 169 | case LqnCorePackage.CONNECT_TO_TYPE: |
| 170 | return createConnectToTypeFromString(eDataType, initialValue); |
| 171 | case LqnCorePackage.PHASE_TYPE: |
| 172 | return createPhaseTypeFromString(eDataType, initialValue); |
| 173 | case LqnCorePackage.SCHEDULING_TYPE_OBJECT: |
| 174 | return createSchedulingTypeObjectFromString(eDataType, initialValue); |
| 175 | case LqnCorePackage.SCI_NOTATION: |
| 176 | return createSciNotationFromString(eDataType, initialValue); |
| 177 | case LqnCorePackage.SEMAPHORE_TYPE_OBJECT: |
| 178 | return createSemaphoreTypeObjectFromString(eDataType, initialValue); |
| 179 | case LqnCorePackage.SRVN_FLOAT: |
| 180 | return createSrvnFloatFromString(eDataType, initialValue); |
| 181 | case LqnCorePackage.TASK_OPTION_TYPE_OBJECT: |
| 182 | return createTaskOptionTypeObjectFromString(eDataType, initialValue); |
| 183 | case LqnCorePackage.TASK_SCHEDULING_TYPE_OBJECT: |
| 184 | return createTaskSchedulingTypeObjectFromString(eDataType, initialValue); |
| 185 | case LqnCorePackage.TYPE_TYPE_OBJECT: |
| 186 | return createTypeTypeObjectFromString(eDataType, initialValue); |
| 187 | case LqnCorePackage.VALID_TYPE_OBJECT: |
| 188 | return createValidTypeObjectFromString(eDataType, initialValue); |
| 189 | case LqnCorePackage.XML_DEBUG_TYPE_OBJECT: |
| 190 | return createXmlDebugTypeObjectFromString(eDataType, initialValue); |
| 191 | default: |
| 192 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * <!-- begin-user-doc --> |
| 198 | * <!-- end-user-doc --> |
| 199 | * @generated |
| 200 | */ |
| 201 | @Override |
| 202 | public String convertToString(EDataType eDataType, Object instanceValue) { |
| 203 | switch (eDataType.getClassifierID()) { |
| 204 | case LqnCorePackage.AXIS_TYPE: |
| 205 | return convertAxisTypeToString(eDataType, instanceValue); |
| 206 | case LqnCorePackage.CALL_ORDER_TYPE: |
| 207 | return convertCallOrderTypeToString(eDataType, instanceValue); |
| 208 | case LqnCorePackage.SCHEDULING_TYPE: |
| 209 | return convertSchedulingTypeToString(eDataType, instanceValue); |
| 210 | case LqnCorePackage.SEMAPHORE_TYPE: |
| 211 | return convertSemaphoreTypeToString(eDataType, instanceValue); |
| 212 | case LqnCorePackage.TASK_OPTION_TYPE: |
| 213 | return convertTaskOptionTypeToString(eDataType, instanceValue); |
| 214 | case LqnCorePackage.TASK_SCHEDULING_TYPE: |
| 215 | return convertTaskSchedulingTypeToString(eDataType, instanceValue); |
| 216 | case LqnCorePackage.TYPE_TYPE: |
| 217 | return convertTypeTypeToString(eDataType, instanceValue); |
| 218 | case LqnCorePackage.VALID_TYPE: |
| 219 | return convertValidTypeToString(eDataType, instanceValue); |
| 220 | case LqnCorePackage.XML_DEBUG_TYPE: |
| 221 | return convertXmlDebugTypeToString(eDataType, instanceValue); |
| 222 | case LqnCorePackage.AXIS_TYPE_OBJECT: |
| 223 | return convertAxisTypeObjectToString(eDataType, instanceValue); |
| 224 | case LqnCorePackage.CALL_ORDER_TYPE_OBJECT: |
| 225 | return convertCallOrderTypeObjectToString(eDataType, instanceValue); |
| 226 | case LqnCorePackage.CONNECT_FROM_TYPE: |
| 227 | return convertConnectFromTypeToString(eDataType, instanceValue); |
| 228 | case LqnCorePackage.CONNECT_TO_TYPE: |
| 229 | return convertConnectToTypeToString(eDataType, instanceValue); |
| 230 | case LqnCorePackage.PHASE_TYPE: |
| 231 | return convertPhaseTypeToString(eDataType, instanceValue); |
| 232 | case LqnCorePackage.SCHEDULING_TYPE_OBJECT: |
| 233 | return convertSchedulingTypeObjectToString(eDataType, instanceValue); |
| 234 | case LqnCorePackage.SCI_NOTATION: |
| 235 | return convertSciNotationToString(eDataType, instanceValue); |
| 236 | case LqnCorePackage.SEMAPHORE_TYPE_OBJECT: |
| 237 | return convertSemaphoreTypeObjectToString(eDataType, instanceValue); |
| 238 | case LqnCorePackage.SRVN_FLOAT: |
| 239 | return convertSrvnFloatToString(eDataType, instanceValue); |
| 240 | case LqnCorePackage.TASK_OPTION_TYPE_OBJECT: |
| 241 | return convertTaskOptionTypeObjectToString(eDataType, instanceValue); |
| 242 | case LqnCorePackage.TASK_SCHEDULING_TYPE_OBJECT: |
| 243 | return convertTaskSchedulingTypeObjectToString(eDataType, instanceValue); |
| 244 | case LqnCorePackage.TYPE_TYPE_OBJECT: |
| 245 | return convertTypeTypeObjectToString(eDataType, instanceValue); |
| 246 | case LqnCorePackage.VALID_TYPE_OBJECT: |
| 247 | return convertValidTypeObjectToString(eDataType, instanceValue); |
| 248 | case LqnCorePackage.XML_DEBUG_TYPE_OBJECT: |
| 249 | return convertXmlDebugTypeObjectToString(eDataType, instanceValue); |
| 250 | default: |
| 251 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * <!-- begin-user-doc --> |
| 257 | * <!-- end-user-doc --> |
| 258 | * @generated |
| 259 | */ |
| 260 | public ActivityDefBase createActivityDefBase() { |
| 261 | ActivityDefBaseImpl activityDefBase = new ActivityDefBaseImpl(); |
| 262 | return activityDefBase; |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * <!-- begin-user-doc --> |
| 267 | * <!-- end-user-doc --> |
| 268 | * @generated |
| 269 | */ |
| 270 | public ActivityDefType createActivityDefType() { |
| 271 | ActivityDefTypeImpl activityDefType = new ActivityDefTypeImpl(); |
| 272 | return activityDefType; |
| 273 | } |
| 274 | |
| 275 | /** |
| 276 | * <!-- begin-user-doc --> |
| 277 | * <!-- end-user-doc --> |
| 278 | * @generated |
| 279 | */ |
| 280 | public ActivityGraphBase createActivityGraphBase() { |
| 281 | ActivityGraphBaseImpl activityGraphBase = new ActivityGraphBaseImpl(); |
| 282 | return activityGraphBase; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * <!-- begin-user-doc --> |
| 287 | * <!-- end-user-doc --> |
| 288 | * @generated |
| 289 | */ |
| 290 | public ActivityListType createActivityListType() { |
| 291 | ActivityListTypeImpl activityListType = new ActivityListTypeImpl(); |
| 292 | return activityListType; |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * <!-- begin-user-doc --> |
| 297 | * <!-- end-user-doc --> |
| 298 | * @generated |
| 299 | */ |
| 300 | public ActivityLoopListType createActivityLoopListType() { |
| 301 | ActivityLoopListTypeImpl activityLoopListType = new ActivityLoopListTypeImpl(); |
| 302 | return activityLoopListType; |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * <!-- begin-user-doc --> |
| 307 | * <!-- end-user-doc --> |
| 308 | * @generated |
| 309 | */ |
| 310 | public ActivityLoopType createActivityLoopType() { |
| 311 | ActivityLoopTypeImpl activityLoopType = new ActivityLoopTypeImpl(); |
| 312 | return activityLoopType; |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * <!-- begin-user-doc --> |
| 317 | * <!-- end-user-doc --> |
| 318 | * @generated |
| 319 | */ |
| 320 | public ActivityMakingCallType createActivityMakingCallType() { |
| 321 | ActivityMakingCallTypeImpl activityMakingCallType = new ActivityMakingCallTypeImpl(); |
| 322 | return activityMakingCallType; |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * <!-- begin-user-doc --> |
| 327 | * <!-- end-user-doc --> |
| 328 | * @generated |
| 329 | */ |
| 330 | public ActivityOrType createActivityOrType() { |
| 331 | ActivityOrTypeImpl activityOrType = new ActivityOrTypeImpl(); |
| 332 | return activityOrType; |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * <!-- begin-user-doc --> |
| 337 | * <!-- end-user-doc --> |
| 338 | * @generated |
| 339 | */ |
| 340 | public ActivityPhasesType createActivityPhasesType() { |
| 341 | ActivityPhasesTypeImpl activityPhasesType = new ActivityPhasesTypeImpl(); |
| 342 | return activityPhasesType; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * <!-- begin-user-doc --> |
| 347 | * <!-- end-user-doc --> |
| 348 | * @generated |
| 349 | */ |
| 350 | public ActivityType createActivityType() { |
| 351 | ActivityTypeImpl activityType = new ActivityTypeImpl(); |
| 352 | return activityType; |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * <!-- begin-user-doc --> |
| 357 | * <!-- end-user-doc --> |
| 358 | * @generated |
| 359 | */ |
| 360 | public AndJoinListType createAndJoinListType() { |
| 361 | AndJoinListTypeImpl andJoinListType = new AndJoinListTypeImpl(); |
| 362 | return andJoinListType; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * <!-- begin-user-doc --> |
| 367 | * <!-- end-user-doc --> |
| 368 | * @generated |
| 369 | */ |
| 370 | public AsynchCallType createAsynchCallType() { |
| 371 | AsynchCallTypeImpl asynchCallType = new AsynchCallTypeImpl(); |
| 372 | return asynchCallType; |
| 373 | } |
| 374 | |
| 375 | /** |
| 376 | * <!-- begin-user-doc --> |
| 377 | * <!-- end-user-doc --> |
| 378 | * @generated |
| 379 | */ |
| 380 | public BindType createBindType() { |
| 381 | BindTypeImpl bindType = new BindTypeImpl(); |
| 382 | return bindType; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * <!-- begin-user-doc --> |
| 387 | * <!-- end-user-doc --> |
| 388 | * @generated |
| 389 | */ |
| 390 | public CallListType createCallListType() { |
| 391 | CallListTypeImpl callListType = new CallListTypeImpl(); |
| 392 | return callListType; |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * <!-- begin-user-doc --> |
| 397 | * <!-- end-user-doc --> |
| 398 | * @generated |
| 399 | */ |
| 400 | public DocumentRoot createDocumentRoot() { |
| 401 | DocumentRootImpl documentRoot = new DocumentRootImpl(); |
| 402 | return documentRoot; |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * <!-- begin-user-doc --> |
| 407 | * <!-- end-user-doc --> |
| 408 | * @generated |
| 409 | */ |
| 410 | public EntryActivityDefType createEntryActivityDefType() { |
| 411 | EntryActivityDefTypeImpl entryActivityDefType = new EntryActivityDefTypeImpl(); |
| 412 | return entryActivityDefType; |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * <!-- begin-user-doc --> |
| 417 | * <!-- end-user-doc --> |
| 418 | * @generated |
| 419 | */ |
| 420 | public EntryActivityGraph createEntryActivityGraph() { |
| 421 | EntryActivityGraphImpl entryActivityGraph = new EntryActivityGraphImpl(); |
| 422 | return entryActivityGraph; |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * <!-- begin-user-doc --> |
| 427 | * <!-- end-user-doc --> |
| 428 | * @generated |
| 429 | */ |
| 430 | public EntryMakingCallType createEntryMakingCallType() { |
| 431 | EntryMakingCallTypeImpl entryMakingCallType = new EntryMakingCallTypeImpl(); |
| 432 | return entryMakingCallType; |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * <!-- begin-user-doc --> |
| 437 | * <!-- end-user-doc --> |
| 438 | * @generated |
| 439 | */ |
| 440 | public EntryType createEntryType() { |
| 441 | EntryTypeImpl entryType = new EntryTypeImpl(); |
| 442 | return entryType; |
| 443 | } |
| 444 | |
| 445 | /** |
| 446 | * <!-- begin-user-doc --> |
| 447 | * <!-- end-user-doc --> |
| 448 | * @generated |
| 449 | */ |
| 450 | public FirstPlotType createFirstPlotType() { |
| 451 | FirstPlotTypeImpl firstPlotType = new FirstPlotTypeImpl(); |
| 452 | return firstPlotType; |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * <!-- begin-user-doc --> |
| 457 | * <!-- end-user-doc --> |
| 458 | * @generated |
| 459 | */ |
| 460 | public HistogramBinType createHistogramBinType() { |
| 461 | HistogramBinTypeImpl histogramBinType = new HistogramBinTypeImpl(); |
| 462 | return histogramBinType; |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * <!-- begin-user-doc --> |
| 467 | * <!-- end-user-doc --> |
| 468 | * @generated |
| 469 | */ |
| 470 | public InPortType createInPortType() { |
| 471 | InPortTypeImpl inPortType = new InPortTypeImpl(); |
| 472 | return inPortType; |
| 473 | } |
| 474 | |
| 475 | /** |
| 476 | * <!-- begin-user-doc --> |
| 477 | * <!-- end-user-doc --> |
| 478 | * @generated |
| 479 | */ |
| 480 | public InterfaceType createInterfaceType() { |
| 481 | InterfaceTypeImpl interfaceType = new InterfaceTypeImpl(); |
| 482 | return interfaceType; |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * <!-- begin-user-doc --> |
| 487 | * <!-- end-user-doc --> |
| 488 | * @generated |
| 489 | */ |
| 490 | public LqnCoreType createLqnCoreType() { |
| 491 | LqnCoreTypeImpl lqnCoreType = new LqnCoreTypeImpl(); |
| 492 | return lqnCoreType; |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * <!-- begin-user-doc --> |
| 497 | * <!-- end-user-doc --> |
| 498 | * @generated |
| 499 | */ |
| 500 | public LqnModelType createLqnModelType() { |
| 501 | LqnModelTypeImpl lqnModelType = new LqnModelTypeImpl(); |
| 502 | return lqnModelType; |
| 503 | } |
| 504 | |
| 505 | /** |
| 506 | * <!-- begin-user-doc --> |
| 507 | * <!-- end-user-doc --> |
| 508 | * @generated |
| 509 | */ |
| 510 | public MakingCallType createMakingCallType() { |
| 511 | MakingCallTypeImpl makingCallType = new MakingCallTypeImpl(); |
| 512 | return makingCallType; |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * <!-- begin-user-doc --> |
| 517 | * <!-- end-user-doc --> |
| 518 | * @generated |
| 519 | */ |
| 520 | public OrListType createOrListType() { |
| 521 | OrListTypeImpl orListType = new OrListTypeImpl(); |
| 522 | return orListType; |
| 523 | } |
| 524 | |
| 525 | /** |
| 526 | * <!-- begin-user-doc --> |
| 527 | * <!-- end-user-doc --> |
| 528 | * @generated |
| 529 | */ |
| 530 | public OutPortType createOutPortType() { |
| 531 | OutPortTypeImpl outPortType = new OutPortTypeImpl(); |
| 532 | return outPortType; |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * <!-- begin-user-doc --> |
| 537 | * <!-- end-user-doc --> |
| 538 | * @generated |
| 539 | */ |
| 540 | public OutputDistributionType createOutputDistributionType() { |
| 541 | OutputDistributionTypeImpl outputDistributionType = new OutputDistributionTypeImpl(); |
| 542 | return outputDistributionType; |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * <!-- begin-user-doc --> |
| 547 | * <!-- end-user-doc --> |
| 548 | * @generated |
| 549 | */ |
| 550 | public OutputEntryDistributionType createOutputEntryDistributionType() { |
| 551 | OutputEntryDistributionTypeImpl outputEntryDistributionType = new OutputEntryDistributionTypeImpl(); |
| 552 | return outputEntryDistributionType; |
| 553 | } |
| 554 | |
| 555 | /** |
| 556 | * <!-- begin-user-doc --> |
| 557 | * <!-- end-user-doc --> |
| 558 | * @generated |
| 559 | */ |
| 560 | public OutputResultForwardingANDJoinDelay createOutputResultForwardingANDJoinDelay() { |
| 561 | OutputResultForwardingANDJoinDelayImpl outputResultForwardingANDJoinDelay = new OutputResultForwardingANDJoinDelayImpl(); |
| 562 | return outputResultForwardingANDJoinDelay; |
| 563 | } |
| 564 | |
| 565 | /** |
| 566 | * <!-- begin-user-doc --> |
| 567 | * <!-- end-user-doc --> |
| 568 | * @generated |
| 569 | */ |
| 570 | public OutputResultType createOutputResultType() { |
| 571 | OutputResultTypeImpl outputResultType = new OutputResultTypeImpl(); |
| 572 | return outputResultType; |
| 573 | } |
| 574 | |
| 575 | /** |
| 576 | * <!-- begin-user-doc --> |
| 577 | * <!-- end-user-doc --> |
| 578 | * @generated |
| 579 | */ |
| 580 | public ParameterType createParameterType() { |
| 581 | ParameterTypeImpl parameterType = new ParameterTypeImpl(); |
| 582 | return parameterType; |
| 583 | } |
| 584 | |
| 585 | /** |
| 586 | * <!-- begin-user-doc --> |
| 587 | * <!-- end-user-doc --> |
| 588 | * @generated |
| 589 | */ |
| 590 | public ParaType createParaType() { |
| 591 | ParaTypeImpl paraType = new ParaTypeImpl(); |
| 592 | return paraType; |
| 593 | } |
| 594 | |
| 595 | /** |
| 596 | * <!-- begin-user-doc --> |
| 597 | * <!-- end-user-doc --> |
| 598 | * @generated |
| 599 | */ |
| 600 | public PhaseActivities createPhaseActivities() { |
| 601 | PhaseActivitiesImpl phaseActivities = new PhaseActivitiesImpl(); |
| 602 | return phaseActivities; |
| 603 | } |
| 604 | |
| 605 | /** |
| 606 | * <!-- begin-user-doc --> |
| 607 | * <!-- end-user-doc --> |
| 608 | * @generated |
| 609 | */ |
| 610 | public PlotControlType createPlotControlType() { |
| 611 | PlotControlTypeImpl plotControlType = new PlotControlTypeImpl(); |
| 612 | return plotControlType; |
| 613 | } |
| 614 | |
| 615 | /** |
| 616 | * <!-- begin-user-doc --> |
| 617 | * <!-- end-user-doc --> |
| 618 | * @generated |
| 619 | */ |
| 620 | public PlotType createPlotType() { |
| 621 | PlotTypeImpl plotType = new PlotTypeImpl(); |
| 622 | return plotType; |
| 623 | } |
| 624 | |
| 625 | /** |
| 626 | * <!-- begin-user-doc --> |
| 627 | * <!-- end-user-doc --> |
| 628 | * @generated |
| 629 | */ |
| 630 | public PortBindingType createPortBindingType() { |
| 631 | PortBindingTypeImpl portBindingType = new PortBindingTypeImpl(); |
| 632 | return portBindingType; |
| 633 | } |
| 634 | |
| 635 | /** |
| 636 | * <!-- begin-user-doc --> |
| 637 | * <!-- end-user-doc --> |
| 638 | * @generated |
| 639 | */ |
| 640 | public PragmaType createPragmaType() { |
| 641 | PragmaTypeImpl pragmaType = new PragmaTypeImpl(); |
| 642 | return pragmaType; |
| 643 | } |
| 644 | |
| 645 | /** |
| 646 | * <!-- begin-user-doc --> |
| 647 | * <!-- end-user-doc --> |
| 648 | * @generated |
| 649 | */ |
| 650 | public PrecedenceType createPrecedenceType() { |
| 651 | PrecedenceTypeImpl precedenceType = new PrecedenceTypeImpl(); |
| 652 | return precedenceType; |
| 653 | } |
| 654 | |
| 655 | /** |
| 656 | * <!-- begin-user-doc --> |
| 657 | * <!-- end-user-doc --> |
| 658 | * @generated |
| 659 | */ |
| 660 | public ProcessorBindingType createProcessorBindingType() { |
| 661 | ProcessorBindingTypeImpl processorBindingType = new ProcessorBindingTypeImpl(); |
| 662 | return processorBindingType; |
| 663 | } |
| 664 | |
| 665 | /** |
| 666 | * <!-- begin-user-doc --> |
| 667 | * <!-- end-user-doc --> |
| 668 | * @generated |
| 669 | */ |
| 670 | public ProcessorType createProcessorType() { |
| 671 | ProcessorTypeImpl processorType = new ProcessorTypeImpl(); |
| 672 | return processorType; |
| 673 | } |
| 674 | |
| 675 | /** |
| 676 | * <!-- begin-user-doc --> |
| 677 | * <!-- end-user-doc --> |
| 678 | * @generated |
| 679 | */ |
| 680 | public ReplyActivityType createReplyActivityType() { |
| 681 | ReplyActivityTypeImpl replyActivityType = new ReplyActivityTypeImpl(); |
| 682 | return replyActivityType; |
| 683 | } |
| 684 | |
| 685 | /** |
| 686 | * <!-- begin-user-doc --> |
| 687 | * <!-- end-user-doc --> |
| 688 | * @generated |
| 689 | */ |
| 690 | public ReplyEntryType createReplyEntryType() { |
| 691 | ReplyEntryTypeImpl replyEntryType = new ReplyEntryTypeImpl(); |
| 692 | return replyEntryType; |
| 693 | } |
| 694 | |
| 695 | /** |
| 696 | * <!-- begin-user-doc --> |
| 697 | * <!-- end-user-doc --> |
| 698 | * @generated |
| 699 | */ |
| 700 | public ResultConf95Type createResultConf95Type() { |
| 701 | ResultConf95TypeImpl resultConf95Type = new ResultConf95TypeImpl(); |
| 702 | return resultConf95Type; |
| 703 | } |
| 704 | |
| 705 | /** |
| 706 | * <!-- begin-user-doc --> |
| 707 | * <!-- end-user-doc --> |
| 708 | * @generated |
| 709 | */ |
| 710 | public ResultConf95Type1 createResultConf95Type1() { |
| 711 | ResultConf95Type1Impl resultConf95Type1 = new ResultConf95Type1Impl(); |
| 712 | return resultConf95Type1; |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * <!-- begin-user-doc --> |
| 717 | * <!-- end-user-doc --> |
| 718 | * @generated |
| 719 | */ |
| 720 | public ResultConf99Type createResultConf99Type() { |
| 721 | ResultConf99TypeImpl resultConf99Type = new ResultConf99TypeImpl(); |
| 722 | return resultConf99Type; |
| 723 | } |
| 724 | |
| 725 | /** |
| 726 | * <!-- begin-user-doc --> |
| 727 | * <!-- end-user-doc --> |
| 728 | * @generated |
| 729 | */ |
| 730 | public ResultConf99Type1 createResultConf99Type1() { |
| 731 | ResultConf99Type1Impl resultConf99Type1 = new ResultConf99Type1Impl(); |
| 732 | return resultConf99Type1; |
| 733 | } |
| 734 | |
| 735 | /** |
| 736 | * <!-- begin-user-doc --> |
| 737 | * <!-- end-user-doc --> |
| 738 | * @generated |
| 739 | */ |
| 740 | public ResultGeneralType createResultGeneralType() { |
| 741 | ResultGeneralTypeImpl resultGeneralType = new ResultGeneralTypeImpl(); |
| 742 | return resultGeneralType; |
| 743 | } |
| 744 | |
| 745 | /** |
| 746 | * <!-- begin-user-doc --> |
| 747 | * <!-- end-user-doc --> |
| 748 | * @generated |
| 749 | */ |
| 750 | public RunControlType createRunControlType() { |
| 751 | RunControlTypeImpl runControlType = new RunControlTypeImpl(); |
| 752 | return runControlType; |
| 753 | } |
| 754 | |
| 755 | /** |
| 756 | * <!-- begin-user-doc --> |
| 757 | * <!-- end-user-doc --> |
| 758 | * @generated |
| 759 | */ |
| 760 | public ServiceType createServiceType() { |
| 761 | ServiceTypeImpl serviceType = new ServiceTypeImpl(); |
| 762 | return serviceType; |
| 763 | } |
| 764 | |
| 765 | /** |
| 766 | * <!-- begin-user-doc --> |
| 767 | * <!-- end-user-doc --> |
| 768 | * @generated |
| 769 | */ |
| 770 | public SingleActivityListType createSingleActivityListType() { |
| 771 | SingleActivityListTypeImpl singleActivityListType = new SingleActivityListTypeImpl(); |
| 772 | return singleActivityListType; |
| 773 | } |
| 774 | |
| 775 | /** |
| 776 | * <!-- begin-user-doc --> |
| 777 | * <!-- end-user-doc --> |
| 778 | * @generated |
| 779 | */ |
| 780 | public SlotType createSlotType() { |
| 781 | SlotTypeImpl slotType = new SlotTypeImpl(); |
| 782 | return slotType; |
| 783 | } |
| 784 | |
| 785 | /** |
| 786 | * <!-- begin-user-doc --> |
| 787 | * <!-- end-user-doc --> |
| 788 | * @generated |
| 789 | */ |
| 790 | public SolverParamsType createSolverParamsType() { |
| 791 | SolverParamsTypeImpl solverParamsType = new SolverParamsTypeImpl(); |
| 792 | return solverParamsType; |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * <!-- begin-user-doc --> |
| 797 | * <!-- end-user-doc --> |
| 798 | * @generated |
| 799 | */ |
| 800 | public SynchCallType createSynchCallType() { |
| 801 | SynchCallTypeImpl synchCallType = new SynchCallTypeImpl(); |
| 802 | return synchCallType; |
| 803 | } |
| 804 | |
| 805 | /** |
| 806 | * <!-- begin-user-doc --> |
| 807 | * <!-- end-user-doc --> |
| 808 | * @generated |
| 809 | */ |
| 810 | public TaskActivityGraph createTaskActivityGraph() { |
| 811 | TaskActivityGraphImpl taskActivityGraph = new TaskActivityGraphImpl(); |
| 812 | return taskActivityGraph; |
| 813 | } |
| 814 | |
| 815 | /** |
| 816 | * <!-- begin-user-doc --> |
| 817 | * <!-- end-user-doc --> |
| 818 | * @generated |
| 819 | */ |
| 820 | public TaskType createTaskType() { |
| 821 | TaskTypeImpl taskType = new TaskTypeImpl(); |
| 822 | return taskType; |
| 823 | } |
| 824 | |
| 825 | /** |
| 826 | * <!-- begin-user-doc --> |
| 827 | * <!-- end-user-doc --> |
| 828 | * @generated |
| 829 | */ |
| 830 | public AxisType createAxisTypeFromString(EDataType eDataType, String initialValue) { |
| 831 | AxisType result = AxisType.get(initialValue); |
| 832 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 833 | return result; |
| 834 | } |
| 835 | |
| 836 | /** |
| 837 | * <!-- begin-user-doc --> |
| 838 | * <!-- end-user-doc --> |
| 839 | * @generated |
| 840 | */ |
| 841 | public String convertAxisTypeToString(EDataType eDataType, Object instanceValue) { |
| 842 | return instanceValue == null ? null : instanceValue.toString(); |
| 843 | } |
| 844 | |
| 845 | /** |
| 846 | * <!-- begin-user-doc --> |
| 847 | * <!-- end-user-doc --> |
| 848 | * @generated |
| 849 | */ |
| 850 | public CallOrderType createCallOrderTypeFromString(EDataType eDataType, String initialValue) { |
| 851 | CallOrderType result = CallOrderType.get(initialValue); |
| 852 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 853 | return result; |
| 854 | } |
| 855 | |
| 856 | /** |
| 857 | * <!-- begin-user-doc --> |
| 858 | * <!-- end-user-doc --> |
| 859 | * @generated |
| 860 | */ |
| 861 | public String convertCallOrderTypeToString(EDataType eDataType, Object instanceValue) { |
| 862 | return instanceValue == null ? null : instanceValue.toString(); |
| 863 | } |
| 864 | |
| 865 | /** |
| 866 | * <!-- begin-user-doc --> |
| 867 | * <!-- end-user-doc --> |
| 868 | * @generated |
| 869 | */ |
| 870 | public SchedulingType createSchedulingTypeFromString(EDataType eDataType, String initialValue) { |
| 871 | SchedulingType result = SchedulingType.get(initialValue); |
| 872 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 873 | return result; |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * <!-- begin-user-doc --> |
| 878 | * <!-- end-user-doc --> |
| 879 | * @generated |
| 880 | */ |
| 881 | public String convertSchedulingTypeToString(EDataType eDataType, Object instanceValue) { |
| 882 | return instanceValue == null ? null : instanceValue.toString(); |
| 883 | } |
| 884 | |
| 885 | /** |
| 886 | * <!-- begin-user-doc --> |
| 887 | * <!-- end-user-doc --> |
| 888 | * @generated |
| 889 | */ |
| 890 | public SemaphoreType createSemaphoreTypeFromString(EDataType eDataType, String initialValue) { |
| 891 | SemaphoreType result = SemaphoreType.get(initialValue); |
| 892 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 893 | return result; |
| 894 | } |
| 895 | |
| 896 | /** |
| 897 | * <!-- begin-user-doc --> |
| 898 | * <!-- end-user-doc --> |
| 899 | * @generated |
| 900 | */ |
| 901 | public String convertSemaphoreTypeToString(EDataType eDataType, Object instanceValue) { |
| 902 | return instanceValue == null ? null : instanceValue.toString(); |
| 903 | } |
| 904 | |
| 905 | /** |
| 906 | * <!-- begin-user-doc --> |
| 907 | * <!-- end-user-doc --> |
| 908 | * @generated |
| 909 | */ |
| 910 | public TaskOptionType createTaskOptionTypeFromString(EDataType eDataType, String initialValue) { |
| 911 | TaskOptionType result = TaskOptionType.get(initialValue); |
| 912 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 913 | return result; |
| 914 | } |
| 915 | |
| 916 | /** |
| 917 | * <!-- begin-user-doc --> |
| 918 | * <!-- end-user-doc --> |
| 919 | * @generated |
| 920 | */ |
| 921 | public String convertTaskOptionTypeToString(EDataType eDataType, Object instanceValue) { |
| 922 | return instanceValue == null ? null : instanceValue.toString(); |
| 923 | } |
| 924 | |
| 925 | /** |
| 926 | * <!-- begin-user-doc --> |
| 927 | * <!-- end-user-doc --> |
| 928 | * @generated |
| 929 | */ |
| 930 | public TaskSchedulingType createTaskSchedulingTypeFromString(EDataType eDataType, String initialValue) { |
| 931 | TaskSchedulingType result = TaskSchedulingType.get(initialValue); |
| 932 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 933 | return result; |
| 934 | } |
| 935 | |
| 936 | /** |
| 937 | * <!-- begin-user-doc --> |
| 938 | * <!-- end-user-doc --> |
| 939 | * @generated |
| 940 | */ |
| 941 | public String convertTaskSchedulingTypeToString(EDataType eDataType, Object instanceValue) { |
| 942 | return instanceValue == null ? null : instanceValue.toString(); |
| 943 | } |
| 944 | |
| 945 | /** |
| 946 | * <!-- begin-user-doc --> |
| 947 | * <!-- end-user-doc --> |
| 948 | * @generated |
| 949 | */ |
| 950 | public TypeType createTypeTypeFromString(EDataType eDataType, String initialValue) { |
| 951 | TypeType result = TypeType.get(initialValue); |
| 952 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 953 | return result; |
| 954 | } |
| 955 | |
| 956 | /** |
| 957 | * <!-- begin-user-doc --> |
| 958 | * <!-- end-user-doc --> |
| 959 | * @generated |
| 960 | */ |
| 961 | public String convertTypeTypeToString(EDataType eDataType, Object instanceValue) { |
| 962 | return instanceValue == null ? null : instanceValue.toString(); |
| 963 | } |
| 964 | |
| 965 | /** |
| 966 | * <!-- begin-user-doc --> |
| 967 | * <!-- end-user-doc --> |
| 968 | * @generated |
| 969 | */ |
| 970 | public ValidType createValidTypeFromString(EDataType eDataType, String initialValue) { |
| 971 | ValidType result = ValidType.get(initialValue); |
| 972 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 973 | return result; |
| 974 | } |
| 975 | |
| 976 | /** |
| 977 | * <!-- begin-user-doc --> |
| 978 | * <!-- end-user-doc --> |
| 979 | * @generated |
| 980 | */ |
| 981 | public String convertValidTypeToString(EDataType eDataType, Object instanceValue) { |
| 982 | return instanceValue == null ? null : instanceValue.toString(); |
| 983 | } |
| 984 | |
| 985 | /** |
| 986 | * <!-- begin-user-doc --> |
| 987 | * <!-- end-user-doc --> |
| 988 | * @generated |
| 989 | */ |
| 990 | public XmlDebugType createXmlDebugTypeFromString(EDataType eDataType, String initialValue) { |
| 991 | XmlDebugType result = XmlDebugType.get(initialValue); |
| 992 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); |
| 993 | return result; |
| 994 | } |
| 995 | |
| 996 | /** |
| 997 | * <!-- begin-user-doc --> |
| 998 | * <!-- end-user-doc --> |
| 999 | * @generated |
| 1000 | */ |
| 1001 | public String convertXmlDebugTypeToString(EDataType eDataType, Object instanceValue) { |
| 1002 | return instanceValue == null ? null : instanceValue.toString(); |
| 1003 | } |
| 1004 | |
| 1005 | /** |
| 1006 | * <!-- begin-user-doc --> |
| 1007 | * <!-- end-user-doc --> |
| 1008 | * @generated |
| 1009 | */ |
| 1010 | public AxisType createAxisTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1011 | return createAxisTypeFromString(LqnCorePackage.Literals.AXIS_TYPE, initialValue); |
| 1012 | } |
| 1013 | |
| 1014 | /** |
| 1015 | * <!-- begin-user-doc --> |
| 1016 | * <!-- end-user-doc --> |
| 1017 | * @generated |
| 1018 | */ |
| 1019 | public String convertAxisTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1020 | return convertAxisTypeToString(LqnCorePackage.Literals.AXIS_TYPE, instanceValue); |
| 1021 | } |
| 1022 | |
| 1023 | /** |
| 1024 | * <!-- begin-user-doc --> |
| 1025 | * <!-- end-user-doc --> |
| 1026 | * @generated |
| 1027 | */ |
| 1028 | public CallOrderType createCallOrderTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1029 | return createCallOrderTypeFromString(LqnCorePackage.Literals.CALL_ORDER_TYPE, initialValue); |
| 1030 | } |
| 1031 | |
| 1032 | /** |
| 1033 | * <!-- begin-user-doc --> |
| 1034 | * <!-- end-user-doc --> |
| 1035 | * @generated |
| 1036 | */ |
| 1037 | public String convertCallOrderTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1038 | return convertCallOrderTypeToString(LqnCorePackage.Literals.CALL_ORDER_TYPE, instanceValue); |
| 1039 | } |
| 1040 | |
| 1041 | /** |
| 1042 | * <!-- begin-user-doc --> |
| 1043 | * <!-- end-user-doc --> |
| 1044 | * @generated |
| 1045 | */ |
| 1046 | public List<String> createConnectFromTypeFromString(EDataType eDataType, String initialValue) { |
| 1047 | if (initialValue == null) return null; |
| 1048 | List<String> result = new ArrayList<String>(); |
| 1049 | for (StringTokenizer stringTokenizer = new StringTokenizer(initialValue); stringTokenizer.hasMoreTokens(); ) { |
| 1050 | String item = stringTokenizer.nextToken(); |
| 1051 | result.add((String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, item)); |
| 1052 | } |
| 1053 | return result; |
| 1054 | } |
| 1055 | |
| 1056 | /** |
| 1057 | * <!-- begin-user-doc --> |
| 1058 | * <!-- end-user-doc --> |
| 1059 | * @generated |
| 1060 | */ |
| 1061 | public String convertConnectFromTypeToString(EDataType eDataType, Object instanceValue) { |
| 1062 | if (instanceValue == null) return null; |
| 1063 | List<?> list = (List<?>)instanceValue; |
| 1064 | if (list.isEmpty()) return ""; |
| 1065 | StringBuffer result = new StringBuffer(); |
| 1066 | for (Object item : list) { |
| 1067 | result.append(XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, item)); |
| 1068 | result.append(' '); |
| 1069 | } |
| 1070 | return result.substring(0, result.length() - 1); |
| 1071 | } |
| 1072 | |
| 1073 | /** |
| 1074 | * <!-- begin-user-doc --> |
| 1075 | * <!-- end-user-doc --> |
| 1076 | * @generated |
| 1077 | */ |
| 1078 | public List<String> createConnectToTypeFromString(EDataType eDataType, String initialValue) { |
| 1079 | if (initialValue == null) return null; |
| 1080 | List<String> result = new ArrayList<String>(); |
| 1081 | for (StringTokenizer stringTokenizer = new StringTokenizer(initialValue); stringTokenizer.hasMoreTokens(); ) { |
| 1082 | String item = stringTokenizer.nextToken(); |
| 1083 | result.add((String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, item)); |
| 1084 | } |
| 1085 | return result; |
| 1086 | } |
| 1087 | |
| 1088 | /** |
| 1089 | * <!-- begin-user-doc --> |
| 1090 | * <!-- end-user-doc --> |
| 1091 | * @generated |
| 1092 | */ |
| 1093 | public String convertConnectToTypeToString(EDataType eDataType, Object instanceValue) { |
| 1094 | if (instanceValue == null) return null; |
| 1095 | List<?> list = (List<?>)instanceValue; |
| 1096 | if (list.isEmpty()) return ""; |
| 1097 | StringBuffer result = new StringBuffer(); |
| 1098 | for (Object item : list) { |
| 1099 | result.append(XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, item)); |
| 1100 | result.append(' '); |
| 1101 | } |
| 1102 | return result.substring(0, result.length() - 1); |
| 1103 | } |
| 1104 | |
| 1105 | /** |
| 1106 | * <!-- begin-user-doc --> |
| 1107 | * <!-- end-user-doc --> |
| 1108 | * @generated |
| 1109 | */ |
| 1110 | public BigInteger createPhaseTypeFromString(EDataType eDataType, String initialValue) { |
| 1111 | return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.POSITIVE_INTEGER, initialValue); |
| 1112 | } |
| 1113 | |
| 1114 | /** |
| 1115 | * <!-- begin-user-doc --> |
| 1116 | * <!-- end-user-doc --> |
| 1117 | * @generated |
| 1118 | */ |
| 1119 | public String convertPhaseTypeToString(EDataType eDataType, Object instanceValue) { |
| 1120 | return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.POSITIVE_INTEGER, instanceValue); |
| 1121 | } |
| 1122 | |
| 1123 | /** |
| 1124 | * <!-- begin-user-doc --> |
| 1125 | * <!-- end-user-doc --> |
| 1126 | * @generated |
| 1127 | */ |
| 1128 | public SchedulingType createSchedulingTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1129 | return createSchedulingTypeFromString(LqnCorePackage.Literals.SCHEDULING_TYPE, initialValue); |
| 1130 | } |
| 1131 | |
| 1132 | /** |
| 1133 | * <!-- begin-user-doc --> |
| 1134 | * <!-- end-user-doc --> |
| 1135 | * @generated |
| 1136 | */ |
| 1137 | public String convertSchedulingTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1138 | return convertSchedulingTypeToString(LqnCorePackage.Literals.SCHEDULING_TYPE, instanceValue); |
| 1139 | } |
| 1140 | |
| 1141 | /** |
| 1142 | * <!-- begin-user-doc --> |
| 1143 | * <!-- end-user-doc --> |
| 1144 | * @generated |
| 1145 | */ |
| 1146 | public String createSciNotationFromString(EDataType eDataType, String initialValue) { |
| 1147 | return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); |
| 1148 | } |
| 1149 | |
| 1150 | /** |
| 1151 | * <!-- begin-user-doc --> |
| 1152 | * <!-- end-user-doc --> |
| 1153 | * @generated |
| 1154 | */ |
| 1155 | public String convertSciNotationToString(EDataType eDataType, Object instanceValue) { |
| 1156 | return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); |
| 1157 | } |
| 1158 | |
| 1159 | /** |
| 1160 | * <!-- begin-user-doc --> |
| 1161 | * <!-- end-user-doc --> |
| 1162 | * @generated |
| 1163 | */ |
| 1164 | public SemaphoreType createSemaphoreTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1165 | return createSemaphoreTypeFromString(LqnCorePackage.Literals.SEMAPHORE_TYPE, initialValue); |
| 1166 | } |
| 1167 | |
| 1168 | /** |
| 1169 | * <!-- begin-user-doc --> |
| 1170 | * <!-- end-user-doc --> |
| 1171 | * @generated |
| 1172 | */ |
| 1173 | public String convertSemaphoreTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1174 | return convertSemaphoreTypeToString(LqnCorePackage.Literals.SEMAPHORE_TYPE, instanceValue); |
| 1175 | } |
| 1176 | |
| 1177 | /** |
| 1178 | * <!-- begin-user-doc --> |
| 1179 | * <!-- end-user-doc --> |
| 1180 | * @generated |
| 1181 | */ |
| 1182 | public Object createSrvnFloatFromString(EDataType eDataType, String initialValue) { |
| 1183 | if (initialValue == null) return null; |
| 1184 | Object result = null; |
| 1185 | RuntimeException exception = null; |
| 1186 | try { |
| 1187 | result = createSciNotationFromString(LqnCorePackage.Literals.SCI_NOTATION, initialValue); |
| 1188 | if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) { |
| 1189 | return result; |
| 1190 | } |
| 1191 | } |
| 1192 | catch (RuntimeException e) { |
| 1193 | exception = e; |
| 1194 | } |
| 1195 | try { |
| 1196 | result = XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DECIMAL, initialValue); |
| 1197 | if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) { |
| 1198 | return result; |
| 1199 | } |
| 1200 | } |
| 1201 | catch (RuntimeException e) { |
| 1202 | exception = e; |
| 1203 | } |
| 1204 | if (result != null || exception == null) return result; |
| 1205 | |
| 1206 | throw exception; |
| 1207 | } |
| 1208 | |
| 1209 | /** |
| 1210 | * <!-- begin-user-doc --> |
| 1211 | * <!-- end-user-doc --> |
| 1212 | * @generated |
| 1213 | */ |
| 1214 | public String convertSrvnFloatToString(EDataType eDataType, Object instanceValue) { |
| 1215 | if (instanceValue == null) return null; |
| 1216 | if (LqnCorePackage.Literals.SCI_NOTATION.isInstance(instanceValue)) { |
| 1217 | try { |
| 1218 | String value = convertSciNotationToString(LqnCorePackage.Literals.SCI_NOTATION, instanceValue); |
| 1219 | if (value != null) return value; |
| 1220 | } |
| 1221 | catch (Exception e) { |
| 1222 | // Keep trying other member types until all have failed. |
| 1223 | } |
| 1224 | } |
| 1225 | if (XMLTypePackage.Literals.DECIMAL.isInstance(instanceValue)) { |
| 1226 | try { |
| 1227 | String value = XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.DECIMAL, instanceValue); |
| 1228 | if (value != null) return value; |
| 1229 | } |
| 1230 | catch (Exception e) { |
| 1231 | // Keep trying other member types until all have failed. |
| 1232 | } |
| 1233 | } |
| 1234 | throw new IllegalArgumentException("Invalid value: '"+instanceValue+"' for datatype :"+eDataType.getName()); |
| 1235 | } |
| 1236 | |
| 1237 | /** |
| 1238 | * <!-- begin-user-doc --> |
| 1239 | * <!-- end-user-doc --> |
| 1240 | * @generated |
| 1241 | */ |
| 1242 | public TaskOptionType createTaskOptionTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1243 | return createTaskOptionTypeFromString(LqnCorePackage.Literals.TASK_OPTION_TYPE, initialValue); |
| 1244 | } |
| 1245 | |
| 1246 | /** |
| 1247 | * <!-- begin-user-doc --> |
| 1248 | * <!-- end-user-doc --> |
| 1249 | * @generated |
| 1250 | */ |
| 1251 | public String convertTaskOptionTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1252 | return convertTaskOptionTypeToString(LqnCorePackage.Literals.TASK_OPTION_TYPE, instanceValue); |
| 1253 | } |
| 1254 | |
| 1255 | /** |
| 1256 | * <!-- begin-user-doc --> |
| 1257 | * <!-- end-user-doc --> |
| 1258 | * @generated |
| 1259 | */ |
| 1260 | public TaskSchedulingType createTaskSchedulingTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1261 | return createTaskSchedulingTypeFromString(LqnCorePackage.Literals.TASK_SCHEDULING_TYPE, initialValue); |
| 1262 | } |
| 1263 | |
| 1264 | /** |
| 1265 | * <!-- begin-user-doc --> |
| 1266 | * <!-- end-user-doc --> |
| 1267 | * @generated |
| 1268 | */ |
| 1269 | public String convertTaskSchedulingTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1270 | return convertTaskSchedulingTypeToString(LqnCorePackage.Literals.TASK_SCHEDULING_TYPE, instanceValue); |
| 1271 | } |
| 1272 | |
| 1273 | /** |
| 1274 | * <!-- begin-user-doc --> |
| 1275 | * <!-- end-user-doc --> |
| 1276 | * @generated |
| 1277 | */ |
| 1278 | public TypeType createTypeTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1279 | return createTypeTypeFromString(LqnCorePackage.Literals.TYPE_TYPE, initialValue); |
| 1280 | } |
| 1281 | |
| 1282 | /** |
| 1283 | * <!-- begin-user-doc --> |
| 1284 | * <!-- end-user-doc --> |
| 1285 | * @generated |
| 1286 | */ |
| 1287 | public String convertTypeTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1288 | return convertTypeTypeToString(LqnCorePackage.Literals.TYPE_TYPE, instanceValue); |
| 1289 | } |
| 1290 | |
| 1291 | /** |
| 1292 | * <!-- begin-user-doc --> |
| 1293 | * <!-- end-user-doc --> |
| 1294 | * @generated |
| 1295 | */ |
| 1296 | public ValidType createValidTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1297 | return createValidTypeFromString(LqnCorePackage.Literals.VALID_TYPE, initialValue); |
| 1298 | } |
| 1299 | |
| 1300 | /** |
| 1301 | * <!-- begin-user-doc --> |
| 1302 | * <!-- end-user-doc --> |
| 1303 | * @generated |
| 1304 | */ |
| 1305 | public String convertValidTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1306 | return convertValidTypeToString(LqnCorePackage.Literals.VALID_TYPE, instanceValue); |
| 1307 | } |
| 1308 | |
| 1309 | /** |
| 1310 | * <!-- begin-user-doc --> |
| 1311 | * <!-- end-user-doc --> |
| 1312 | * @generated |
| 1313 | */ |
| 1314 | public XmlDebugType createXmlDebugTypeObjectFromString(EDataType eDataType, String initialValue) { |
| 1315 | return createXmlDebugTypeFromString(LqnCorePackage.Literals.XML_DEBUG_TYPE, initialValue); |
| 1316 | } |
| 1317 | |
| 1318 | /** |
| 1319 | * <!-- begin-user-doc --> |
| 1320 | * <!-- end-user-doc --> |
| 1321 | * @generated |
| 1322 | */ |
| 1323 | public String convertXmlDebugTypeObjectToString(EDataType eDataType, Object instanceValue) { |
| 1324 | return convertXmlDebugTypeToString(LqnCorePackage.Literals.XML_DEBUG_TYPE, instanceValue); |
| 1325 | } |
| 1326 | |
| 1327 | /** |
| 1328 | * <!-- begin-user-doc --> |
| 1329 | * <!-- end-user-doc --> |
| 1330 | * @generated |
| 1331 | */ |
| 1332 | public LqnCorePackage getLqnCorePackage() { |
| 1333 | return (LqnCorePackage)getEPackage(); |
| 1334 | } |
| 1335 | |
| 1336 | /** |
| 1337 | * <!-- begin-user-doc --> |
| 1338 | * <!-- end-user-doc --> |
| 1339 | * @deprecated |
| 1340 | * @generated |
| 1341 | */ |
| 1342 | @Deprecated |
| 1343 | public static LqnCorePackage getPackage() { |
| 1344 | return LqnCorePackage.eINSTANCE; |
| 1345 | } |
| 1346 | |
| 1347 | } //LqnCoreFactoryImpl |