Module: Muml_Interface
- Defined in:
- lib/ontomde-uml2/umlx.rb,
lib/ontomde-uml2/createAndAdd.rb,
lib/ontomde-uml2/autoImplement.rb,
lib/ontomde-uml2/autoImplement.rb,
lib/ontomde-uml2/versionSignature.rb
Instance Method Summary collapse
- #uml_addVersionSignature(interface) ⇒ Object
-
#umlx_assignableClassifier(ret = Set.new) ⇒ Object
returns every type assignable to this classifier (this includes self and any class deriving from it).
- #umlx_createAndAddGeneralization(gen) ⇒ Object
- #umlx_ImplementedAttributes(ret) ⇒ Object
- #umlx_ImplementedOperation(ret = Hash.new()) ⇒ Object
Instance Method Details
#uml_addVersionSignature(interface) ⇒ Object
31 32 33 |
# File 'lib/ontomde-uml2/versionSignature.rb', line 31 def uml_addVersionSignature(interface) umlx_createAndAddGeneralization(interface) end |
#umlx_assignableClassifier(ret = Set.new) ⇒ Object
returns every type assignable to this classifier (this includes self and any class deriving from it)
611 612 613 614 615 616 617 618 619 620 |
# File 'lib/ontomde-uml2/umlx.rb', line 611 def umlx_assignableClassifier(ret=Set.new) return ret if ret.include?(self) super(ret) uml_supplier_inv.each { |g| g.uml_implementation_inv.each {|c| c.umlx_assignableClassifier(ret) }} return ret end |
#umlx_createAndAddGeneralization(gen) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/ontomde-uml2/createAndAdd.rb', line 30 def umlx_createAndAddGeneralization(gen) g=Cuml_Generalization.new(rdf_Repository,nil) g.uml_general=gen g.uml_specific=self self.uml_generalization_add(g) return g end |
#umlx_ImplementedAttributes(ret) ⇒ Object
76 77 78 79 80 81 82 83 84 |
# File 'lib/ontomde-uml2/autoImplement.rb', line 76 def umlx_ImplementedAttributes(ret) uml_generalization.each{|gen| gen.uml_general_one.umlx_ImplementedAttributes(ret) } uml_ownedAttribute.each { |oa| ret << oa } return ret end |
#umlx_ImplementedOperation(ret = Hash.new()) ⇒ Object
168 169 170 |
# File 'lib/ontomde-uml2/autoImplement.rb', line 168 def umlx_ImplementedOperation(ret=Hash.new()) return ret end |