|
37 | 37 | import org.omg.sysml.lang.sysml.AllocationUsage; |
38 | 38 | import org.omg.sysml.lang.sysml.AnalysisCaseDefinition; |
39 | 39 | import org.omg.sysml.lang.sysml.AnalysisCaseUsage; |
| 40 | +import org.omg.sysml.lang.sysml.AssertConstraintUsage; |
40 | 41 | import org.omg.sysml.lang.sysml.Behavior; |
41 | 42 | import org.omg.sysml.lang.sysml.BindingConnector; |
42 | 43 | import org.omg.sysml.lang.sysml.Class; |
|
52 | 53 | import org.omg.sysml.lang.sysml.FeatureMembership; |
53 | 54 | import org.omg.sysml.lang.sysml.FeatureTyping; |
54 | 55 | import org.omg.sysml.lang.sysml.FeatureValue; |
| 56 | +import org.omg.sysml.lang.sysml.Flow; |
55 | 57 | import org.omg.sysml.lang.sysml.FlowUsage; |
56 | 58 | import org.omg.sysml.lang.sysml.Import; |
57 | 59 | import org.omg.sysml.lang.sysml.IncludeUseCaseUsage; |
58 | 60 | import org.omg.sysml.lang.sysml.ItemDefinition; |
59 | | -import org.omg.sysml.lang.sysml.Flow; |
60 | 61 | import org.omg.sysml.lang.sysml.ItemUsage; |
61 | 62 | import org.omg.sysml.lang.sysml.Membership; |
62 | 63 | import org.omg.sysml.lang.sysml.MetadataFeature; |
@@ -462,16 +463,6 @@ public String caseDependency(Dependency dep) { |
462 | 463 | return " ..>> "; |
463 | 464 | } |
464 | 465 |
|
465 | | - @Override |
466 | | - public String caseRequirementConstraintMembership(RequirementConstraintMembership requirementConstraintMembership) { |
467 | | - return " ..> "; |
468 | | - } |
469 | | - |
470 | | - @Override |
471 | | - public String caseSatisfyRequirementUsage(SatisfyRequirementUsage satisfyRequirementUsage) { |
472 | | - return " ..> "; |
473 | | - } |
474 | | - |
475 | 466 | @Override |
476 | 467 | public String caseBindingConnector(BindingConnector object) { |
477 | 468 | return " -[thickness=5]- "; |
@@ -506,41 +497,49 @@ public String caseObjectiveMembership(ObjectiveMembership vm) { |
506 | 497 | public String caseImport(Import imp) { |
507 | 498 | return " ..> "; |
508 | 499 | } |
509 | | - } |
510 | 500 |
|
511 | | - public static class StyleStereotypeDefaultSwitch extends StyleStereotypeSwitch { |
512 | 501 | @Override |
513 | | - public String caseClass(Class object) { |
514 | | - if (SysMLPackage.Literals.CLASS.equals(object.eClass())) return " "; |
515 | | - return null; |
| 502 | + public String caseRequirementConstraintMembership(RequirementConstraintMembership requirementConstraintMembership) { |
| 503 | + return " --> "; |
516 | 504 | } |
517 | 505 |
|
518 | 506 | @Override |
519 | | - public String caseExhibitStateUsage(ExhibitStateUsage esu) { |
520 | | - if (VStructure.hasRefSubsettingWithoutDeclaredName(esu)) { |
521 | | - return " exhibit>> "; |
522 | | - } else { |
523 | | - return " exhibit state>> "; |
524 | | - } |
| 507 | + public String caseSatisfyRequirementUsage(SatisfyRequirementUsage satisfyRequirementUsage) { |
| 508 | + return " --> "; |
525 | 509 | } |
526 | 510 |
|
527 | 511 | @Override |
528 | | - public String caseSatisfyRequirementUsage(SatisfyRequirementUsage sru) { |
529 | | - return "<<requirement>> "; |
| 512 | + public String caseAssertConstraintUsage(AssertConstraintUsage acu) { |
| 513 | + return " --> "; |
530 | 514 | } |
531 | 515 |
|
532 | 516 | @Override |
533 | | - public String caseIncludeUseCaseUsage(IncludeUseCaseUsage iucu) { |
534 | | - return " include use case>> "; |
| 517 | + public String casePerformActionUsage(PerformActionUsage pau) { |
| 518 | + return " --> "; |
535 | 519 | } |
536 | 520 |
|
| 521 | + @Override |
| 522 | + public String caseExhibitStateUsage(ExhibitStateUsage esu) { |
| 523 | + return " --> "; |
| 524 | + } |
| 525 | + |
| 526 | + @Override |
| 527 | + public String caseEventOccurrenceUsage(EventOccurrenceUsage eou) { |
| 528 | + return " --> "; |
| 529 | + } |
| 530 | + |
| 531 | + @Override |
| 532 | + public String caseIncludeUseCaseUsage(IncludeUseCaseUsage iuc) { |
| 533 | + return " --> "; |
| 534 | + } |
| 535 | + |
| 536 | + } |
| 537 | + |
| 538 | + public static class StyleStereotypeDefaultSwitch extends StyleStereotypeSwitch { |
537 | 539 | @Override |
538 | | - public String casePerformActionUsage(PerformActionUsage pau) { |
539 | | - if (VStructure.hasRefSubsettingWithoutDeclaredName(pau)) { |
540 | | - return " perform>> "; |
541 | | - } else { |
542 | | - return " perform action>> "; |
543 | | - } |
| 540 | + public String caseClass(Class object) { |
| 541 | + if (SysMLPackage.Literals.CLASS.equals(object.eClass())) return " "; |
| 542 | + return null; |
544 | 543 | } |
545 | 544 |
|
546 | 545 | @Override |
@@ -573,9 +572,58 @@ public String caseVerificationCaseDefinition(VerificationCaseDefinition acd) { |
573 | 572 | return " verification def>> "; |
574 | 573 | } |
575 | 574 |
|
| 575 | + @Override |
| 576 | + public String caseExhibitStateUsage(ExhibitStateUsage esu) { |
| 577 | + if (Visitor.getSpecialReference(esu) != null) { |
| 578 | + return " exhibit>> "; |
| 579 | + } else { |
| 580 | + return " exhibit state>> "; |
| 581 | + } |
| 582 | + } |
| 583 | + |
| 584 | + @Override |
| 585 | + public String caseSatisfyRequirementUsage(SatisfyRequirementUsage sru) { |
| 586 | + if (Visitor.getSpecialReference(sru) != null) { |
| 587 | + return " satisfy>> "; |
| 588 | + } else { |
| 589 | + return " satisfy requirement>> "; |
| 590 | + } |
| 591 | + } |
| 592 | + |
| 593 | + @Override |
| 594 | + public String caseIncludeUseCaseUsage(IncludeUseCaseUsage iucu) { |
| 595 | + if (Visitor.getSpecialReference(iucu) != null) { |
| 596 | + return " include>> "; |
| 597 | + } else { |
| 598 | + return " include use case>> "; |
| 599 | + } |
| 600 | + } |
| 601 | + |
| 602 | + @Override |
| 603 | + public String casePerformActionUsage(PerformActionUsage pau) { |
| 604 | + if (Visitor.getSpecialReference(pau) != null) { |
| 605 | + return " perform>> "; |
| 606 | + } else { |
| 607 | + return " perform action>> "; |
| 608 | + } |
| 609 | + } |
| 610 | + |
| 611 | + @Override |
| 612 | + public String caseAssertConstraintUsage(AssertConstraintUsage acu) { |
| 613 | + if (Visitor.getSpecialReference(acu) != null) { |
| 614 | + return " assert>> "; |
| 615 | + } else { |
| 616 | + return " assert constraint>> "; |
| 617 | + } |
| 618 | + } |
| 619 | + |
576 | 620 | @Override |
577 | 621 | public String caseEventOccurrenceUsage(EventOccurrenceUsage eou) { |
578 | | - return " event occurrence>> "; |
| 622 | + if (Visitor.getSpecialReference(eou) != null) { |
| 623 | + return " event>> "; |
| 624 | + } else { |
| 625 | + return " event occurrence>> "; |
| 626 | + } |
579 | 627 | } |
580 | 628 | } |
581 | 629 |
|
|
0 commit comments