archimate 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/archimate.gemspec +2 -1
  3. data/lib/archimate/color.rb +2 -2
  4. data/lib/archimate/data_model/any_attribute.rb +4 -10
  5. data/lib/archimate/data_model/any_element.rb +9 -17
  6. data/lib/archimate/data_model/bounds.rb +6 -6
  7. data/lib/archimate/data_model/color.rb +6 -6
  8. data/lib/archimate/data_model/comparison.rb +101 -5
  9. data/lib/archimate/data_model/concern.rb +5 -13
  10. data/lib/archimate/data_model/connection.rb +39 -48
  11. data/lib/archimate/data_model/connector_type.rb +1 -0
  12. data/lib/archimate/data_model/diagram.rb +27 -42
  13. data/lib/archimate/data_model/diagram_type.rb +1 -0
  14. data/lib/archimate/data_model/element.rb +14 -35
  15. data/lib/archimate/data_model/elements.rb +681 -0
  16. data/lib/archimate/data_model/font.rb +8 -8
  17. data/lib/archimate/data_model/lang_string.rb +10 -36
  18. data/lib/archimate/data_model/layer.rb +4 -5
  19. data/lib/archimate/data_model/layers.rb +45 -49
  20. data/lib/archimate/data_model/location.rb +6 -6
  21. data/lib/archimate/data_model/metadata.rb +2 -6
  22. data/lib/archimate/data_model/model.rb +50 -62
  23. data/lib/archimate/data_model/modeling_note.rb +3 -8
  24. data/lib/archimate/data_model/organization.rb +18 -27
  25. data/lib/archimate/data_model/property.rb +9 -8
  26. data/lib/archimate/data_model/property_definition.rb +15 -21
  27. data/lib/archimate/data_model/referenceable.rb +14 -9
  28. data/lib/archimate/data_model/referenceable_list.rb +82 -0
  29. data/lib/archimate/data_model/relationship.rb +41 -152
  30. data/lib/archimate/data_model/relationship_references.rb +29 -0
  31. data/lib/archimate/data_model/relationships.rb +214 -0
  32. data/lib/archimate/data_model/schema_info.rb +6 -12
  33. data/lib/archimate/data_model/style.rb +14 -25
  34. data/lib/archimate/data_model/view_node.rb +38 -66
  35. data/lib/archimate/data_model/viewpoint.rb +23 -38
  36. data/lib/archimate/data_model/viewpoint_type.rb +347 -387
  37. data/lib/archimate/data_model.rb +7 -6
  38. data/lib/archimate/derived_relations.rb +106 -31
  39. data/lib/archimate/export/cypher.rb +0 -18
  40. data/lib/archimate/export/jsonl.rb +16 -45
  41. data/lib/archimate/export/n_quads.rb +1 -24
  42. data/lib/archimate/file_formats/archi_file_reader.rb +2 -1
  43. data/lib/archimate/file_formats/model_exchange_file_writer_21.rb +9 -1
  44. data/lib/archimate/file_formats/sax/archi/archi_handler_factory.rb +2 -2
  45. data/lib/archimate/file_formats/sax/archi/connection.rb +2 -1
  46. data/lib/archimate/file_formats/sax/archi/element.rb +7 -5
  47. data/lib/archimate/file_formats/sax/archi/relationship.rb +1 -1
  48. data/lib/archimate/file_formats/sax/model_exchange_file/connection.rb +2 -1
  49. data/lib/archimate/file_formats/sax/model_exchange_file/element.rb +1 -1
  50. data/lib/archimate/file_formats/sax/model_exchange_file/relationship.rb +1 -1
  51. data/lib/archimate/file_formats/sax/model_exchange_file/view_node.rb +0 -1
  52. data/lib/archimate/file_formats/serializer/archi/relationship.rb +1 -1
  53. data/lib/archimate/lint/duplicate_entities.rb +46 -42
  54. data/lib/archimate/svg/archimate.css +12 -2
  55. data/lib/archimate/svg/entity/base_entity.rb +6 -29
  56. data/lib/archimate/svg/entity/location.rb +1 -0
  57. data/lib/archimate/svg/entity_factory.rb +3 -3
  58. data/lib/archimate/svg/point.rb +3 -3
  59. data/lib/archimate/svg/svg_template.svg.erb +5 -5
  60. data/lib/archimate/version.rb +2 -1
  61. metadata +20 -6
  62. data/TODOs.org +0 -505
  63. data/lib/archimate/data_model/differentiable.rb +0 -142
  64. data/lib/archimate/data_model/element_type.rb +0 -89
  65. data/lib/archimate/data_model/relationship_type.rb +0 -45
@@ -1,89 +0,0 @@
1
- # frozen_string_literal: true
2
- require "ruby-enum"
3
-
4
- module Archimate
5
- module DataModel
6
- # Enumeration class that defines the strings used for all Archimate element
7
- # types.
8
- class ElementType
9
- include Ruby::Enum
10
-
11
- define :BusinessActor, "BusinessActor"
12
- define :BusinessCollaboration, "BusinessCollaboration"
13
- define :BusinessEvent, "BusinessEvent"
14
- define :BusinessFunction, "BusinessFunction"
15
- define :BusinessInteraction, "BusinessInteraction"
16
- define :BusinessInterface, "BusinessInterface"
17
- define :BusinessObject, "BusinessObject"
18
- define :BusinessProcess, "BusinessProcess"
19
- define :BusinessRole, "BusinessRole"
20
- define :BusinessService, "BusinessService"
21
- define :Contract, "Contract"
22
- define :Location, "Location"
23
- define :Meaning, "Meaning"
24
- define :Value, "Value"
25
- define :Product, "Product"
26
- define :Representation, "Representation"
27
- define :ApplicationCollaboration, "ApplicationCollaboration"
28
- define :ApplicationComponent, "ApplicationComponent"
29
- define :ApplicationFunction, "ApplicationFunction"
30
- define :ApplicationInteraction, "ApplicationInteraction"
31
- define :ApplicationInterface, "ApplicationInterface"
32
- define :ApplicationService, "ApplicationService"
33
- define :DataObject, "DataObject"
34
- define :Artifact, "Artifact"
35
- define :CommunicationPath, "CommunicationPath"
36
- define :Device, "Device"
37
- define :InfrastructureFunction, "InfrastructureFunction"
38
- define :InfrastructureInterface, "InfrastructureInterface"
39
- define :InfrastructureService, "InfrastructureService"
40
- define :Network, "Network"
41
- define :Node, "Node"
42
- define :SystemSoftware, "SystemSoftware"
43
- define :Assessment, "Assessment"
44
- define :Constraint, "Constraint"
45
- define :Driver, "Driver"
46
- define :Goal, "Goal"
47
- define :Principle, "Principle"
48
- define :Requirement, "Requirement"
49
- define :Stakeholder, "Stakeholder"
50
- define :Deliverable, "Deliverable"
51
- define :Gap, "Gap"
52
- define :Plateau, "Plateau"
53
- define :WorkPackage, "WorkPackage"
54
- define :AndJunction, "AndJunction"
55
- define :Junction, "Junction"
56
- define :OrJunction, "OrJunction"
57
- define :Capability, "Capability"
58
- define :CourseOfAction, "CourseOfAction"
59
- define :Resource, "Resource"
60
- define :ApplicationProcess, "ApplicationProcess"
61
- define :ApplicationEvent, "ApplicationEvent"
62
- define :TechnologyCollaboration, "TechnologyCollaboration"
63
- define :TechnologyInterface, "TechnologyInterface"
64
- define :Path, "Path"
65
- define :CommunicationNetwork, "CommunicationNetwork"
66
- define :TechnologyFunction, "TechnologyFunction"
67
- define :TechnologyProcess, "TechnologyProcess"
68
- define :TechnologyInteraction, "TechnologyInteraction"
69
- define :TechnologyEvent, "TechnologyEvent"
70
- define :TechnologyService, "TechnologyService"
71
- define :TechnologyObject, "TechnologyObject"
72
- define :Equipment, "Equipment"
73
- define :Facility, "Facility"
74
- define :DistributionNetwork, "DistributionNetwork"
75
- define :Material, "Material"
76
- define :Outcome, "Outcome"
77
- define :ImplementationEvent, "ImplementationEvent"
78
- # @todo Is grouping a valid element type?
79
- # define :Grouping, "Grouping"
80
-
81
- # Case equality operator. Used to determine if a value is a member of this enum
82
- #
83
- # @param other [String] string to test for enum membership.
84
- def self.===(other)
85
- values.include?(other)
86
- end
87
- end
88
- end
89
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
- require "ruby-enum"
3
-
4
- module Archimate
5
- module DataModel
6
- RELATION_VERBS = {
7
- "AccessRelationship" => "accesses",
8
- "AggregationRelationship" => "aggregates",
9
- "AssignmentRelationship" => "is assigned to",
10
- "AssociationRelationship" => "is associated with",
11
- "CompositionRelationship" => "composes",
12
- "FlowRelationship" => "flows to",
13
- "InfluenceRelationship" => "influenecs",
14
- "RealisationRelationship" => "realizes",
15
- "RealizationRelationship" => "realizes",
16
- "SpecialisationRelationship" => "specializes",
17
- "TriggeringRelationship" => "triggers",
18
- "UsedByRelationship" => "is used by"
19
- }.freeze
20
-
21
- class RelationshipType
22
- include Ruby::Enum
23
-
24
- define :AccessRelationship, "AccessRelationship"
25
- define :AggregationRelationship, "AggregationRelationship"
26
- define :AssignmentRelationship, "AssignmentRelationship"
27
- define :AssociationRelationship, "AssociationRelationship"
28
- define :CompositionRelationship, "CompositionRelationship"
29
- define :FlowRelationship, "FlowRelationship"
30
- define :InfluenceRelationship, "InfluenceRelationship"
31
- define :RealisationRelationship, "RealisationRelationship"
32
- define :RealizationRelationship, "RealizationRelationship"
33
- define :SpecialisationRelationship, "SpecialisationRelationship"
34
- define :SpecializationRelationship, "SpecializationRelationship"
35
- define :TriggeringRelationship, "TriggeringRelationship"
36
- define :UsedByRelationship, "UsedByRelationship" # @todo Support: Serving
37
- define :ServingRelationship, "ServingRelationship" # @todo Support: Serving
38
- define :GroupingRelationship, "GroupingRelationship"
39
-
40
- def self.===(other)
41
- values.include?(other)
42
- end
43
- end
44
- end
45
- end