Module: Muml_Interface
- Defined in:
- lib/ontomde-uml2/umlx.rb,
lib/ontomde-uml2/nocode.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_addDependencies(s = Set.new) ⇒ 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_addDependencies(s = Set.new) ⇒ Object
39 40 |
# File 'lib/ontomde-uml2/nocode.rb', line 39 def umlx_addDependencies(s=Set.new) end |
#umlx_assignableClassifier(ret = Set.new) ⇒ Object
returns every type assignable to this classifier (this includes self and any class deriving from it)
639 640 641 642 643 644 645 646 647 648 |
# File 'lib/ontomde-uml2/umlx.rb', line 639 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
100 101 102 103 104 105 106 107 108 |
# File 'lib/ontomde-uml2/autoImplement.rb', line 100 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
195 196 197 |
# File 'lib/ontomde-uml2/autoImplement.rb', line 195 def umlx_ImplementedOperation(ret=Hash.new()) return ret end |