Class: Lutaml::Sysml::Requirement
- Inherits:
-
Uml::Class
- Object
- Uml::TopElement
- Uml::Classifier
- Uml::Class
- Lutaml::Sysml::Requirement
- Defined in:
- lib/lutaml/sysml/requirement.rb
Instance Attribute Summary collapse
-
#base_class ⇒ Object
Returns the value of attribute base_class.
-
#derived_from ⇒ Object
Returns the value of attribute derived_from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#refined_by ⇒ Object
Returns the value of attribute refined_by.
-
#satisfied_by ⇒ Object
Returns the value of attribute satisfied_by.
-
#text ⇒ Object
Returns the value of attribute text.
-
#traced_to ⇒ Object
Returns the value of attribute traced_to.
Attributes inherited from Uml::Class
#associations, #attributes, #constraints, #data_types, #is_abstract, #members, #modifier, #nested_classifier, #operations, #package, #type
Attributes inherited from Uml::Classifier
Attributes inherited from Uml::TopElement
#comments, #definition, #href, #keyword, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize ⇒ Requirement
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
Methods inherited from Uml::Class
Methods included from Uml::HasMembers
Methods included from Uml::HasAttributes
Constructor Details
#initialize ⇒ Requirement
rubocop:disable Lint/MissingSuper
7 8 9 10 11 12 13 |
# File 'lib/lutaml/sysml/requirement.rb', line 7 def initialize # rubocop:disable Lint/MissingSuper @xmi_id = nil @id = nil @nested_classifier = [] @stereotype = [] @namespace = nil end |
Instance Attribute Details
#base_class ⇒ Object
Returns the value of attribute base_class.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def base_class @base_class end |
#derived_from ⇒ Object
Returns the value of attribute derived_from.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def derived_from @derived_from end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def id @id end |
#refined_by ⇒ Object
Returns the value of attribute refined_by.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def refined_by @refined_by end |
#satisfied_by ⇒ Object
Returns the value of attribute satisfied_by.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def satisfied_by @satisfied_by end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def text @text end |
#traced_to ⇒ Object
Returns the value of attribute traced_to.
4 5 6 |
# File 'lib/lutaml/sysml/requirement.rb', line 4 def traced_to @traced_to end |
Instance Method Details
#full_name ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/lutaml/sysml/requirement.rb', line 23 def full_name if !base_class.nil? && !base_class.name.nil? return base_class.full_name end nil end |
#name ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/lutaml/sysml/requirement.rb', line 15 def name if !base_class.nil? && !base_class.name.nil? return base_class.name end nil end |