archimate 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/archimate.gemspec +2 -1
- data/lib/archimate/color.rb +2 -2
- data/lib/archimate/data_model/any_attribute.rb +4 -10
- data/lib/archimate/data_model/any_element.rb +9 -17
- data/lib/archimate/data_model/bounds.rb +6 -6
- data/lib/archimate/data_model/color.rb +6 -6
- data/lib/archimate/data_model/comparison.rb +101 -5
- data/lib/archimate/data_model/concern.rb +5 -13
- data/lib/archimate/data_model/connection.rb +39 -48
- data/lib/archimate/data_model/connector_type.rb +1 -0
- data/lib/archimate/data_model/diagram.rb +27 -42
- data/lib/archimate/data_model/diagram_type.rb +1 -0
- data/lib/archimate/data_model/element.rb +14 -35
- data/lib/archimate/data_model/elements.rb +681 -0
- data/lib/archimate/data_model/font.rb +8 -8
- data/lib/archimate/data_model/lang_string.rb +10 -36
- data/lib/archimate/data_model/layer.rb +4 -5
- data/lib/archimate/data_model/layers.rb +45 -49
- data/lib/archimate/data_model/location.rb +6 -6
- data/lib/archimate/data_model/metadata.rb +2 -6
- data/lib/archimate/data_model/model.rb +50 -62
- data/lib/archimate/data_model/modeling_note.rb +3 -8
- data/lib/archimate/data_model/organization.rb +18 -27
- data/lib/archimate/data_model/property.rb +9 -8
- data/lib/archimate/data_model/property_definition.rb +15 -21
- data/lib/archimate/data_model/referenceable.rb +14 -9
- data/lib/archimate/data_model/referenceable_list.rb +82 -0
- data/lib/archimate/data_model/relationship.rb +41 -152
- data/lib/archimate/data_model/relationship_references.rb +29 -0
- data/lib/archimate/data_model/relationships.rb +214 -0
- data/lib/archimate/data_model/schema_info.rb +6 -12
- data/lib/archimate/data_model/style.rb +14 -25
- data/lib/archimate/data_model/view_node.rb +38 -66
- data/lib/archimate/data_model/viewpoint.rb +23 -38
- data/lib/archimate/data_model/viewpoint_type.rb +347 -387
- data/lib/archimate/data_model.rb +7 -6
- data/lib/archimate/derived_relations.rb +106 -31
- data/lib/archimate/export/cypher.rb +0 -18
- data/lib/archimate/export/jsonl.rb +16 -45
- data/lib/archimate/export/n_quads.rb +1 -24
- data/lib/archimate/file_formats/archi_file_reader.rb +2 -1
- data/lib/archimate/file_formats/model_exchange_file_writer_21.rb +9 -1
- data/lib/archimate/file_formats/sax/archi/archi_handler_factory.rb +2 -2
- data/lib/archimate/file_formats/sax/archi/connection.rb +2 -1
- data/lib/archimate/file_formats/sax/archi/element.rb +7 -5
- data/lib/archimate/file_formats/sax/archi/relationship.rb +1 -1
- data/lib/archimate/file_formats/sax/model_exchange_file/connection.rb +2 -1
- data/lib/archimate/file_formats/sax/model_exchange_file/element.rb +1 -1
- data/lib/archimate/file_formats/sax/model_exchange_file/relationship.rb +1 -1
- data/lib/archimate/file_formats/sax/model_exchange_file/view_node.rb +0 -1
- data/lib/archimate/file_formats/serializer/archi/relationship.rb +1 -1
- data/lib/archimate/lint/duplicate_entities.rb +46 -42
- data/lib/archimate/svg/archimate.css +12 -2
- data/lib/archimate/svg/entity/base_entity.rb +6 -29
- data/lib/archimate/svg/entity/location.rb +1 -0
- data/lib/archimate/svg/entity_factory.rb +3 -3
- data/lib/archimate/svg/point.rb +3 -3
- data/lib/archimate/svg/svg_template.svg.erb +5 -5
- data/lib/archimate/version.rb +2 -1
- metadata +20 -6
- data/TODOs.org +0 -505
- data/lib/archimate/data_model/differentiable.rb +0 -142
- data/lib/archimate/data_model/element_type.rb +0 -89
- 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
|