Class: Lutaml::Sysml::Requirement

Inherits:
Uml::Class show all
Defined in:
lib/lutaml/sysml/requirement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Uml::Class

#associations_from_yaml, #associations_to_yaml

Methods inherited from Uml::TopElement

#definition_from_yaml, #definition_to_yaml, #full_name_from_yaml, #full_name_to_yaml

Constructor Details

#initializeRequirement

rubocop:disable Lint/MissingSuper



9
10
11
12
13
14
15
# File 'lib/lutaml/sysml/requirement.rb', line 9

def initialize # rubocop:disable Lint/MissingSuper
  @xmi_id = nil
  @id = nil
  @nested_classifier = []
  @stereotype = []
  @namespace = nil
end

Instance Attribute Details

#base_classObject

Returns the value of attribute base_class.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def base_class
  @base_class
end

#derived_fromObject

Returns the value of attribute derived_from.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def derived_from
  @derived_from
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def id
  @id
end

#refined_byObject

Returns the value of attribute refined_by.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def refined_by
  @refined_by
end

#satisfied_byObject

Returns the value of attribute satisfied_by.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def satisfied_by
  @satisfied_by
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def text
  @text
end

#traced_toObject

Returns the value of attribute traced_to.



6
7
8
# File 'lib/lutaml/sysml/requirement.rb', line 6

def traced_to
  @traced_to
end

Instance Method Details

#full_nameObject



25
26
27
28
29
30
31
# File 'lib/lutaml/sysml/requirement.rb', line 25

def full_name
  if !base_class.nil? && !base_class.name.nil?
    return base_class.full_name
  end

  nil
end

#nameObject



17
18
19
20
21
22
23
# File 'lib/lutaml/sysml/requirement.rb', line 17

def name
  if !base_class.nil? && !base_class.name.nil?
    return base_class.name
  end

  nil
end