# PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP require 'date' class X #------------------------ # MEMBER VARIABLES #------------------------ #X Attributes - for documentation purposes #attr_reader :d, :e #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_d, a_e) @initialized = false @deleted = false @d = a_d @e = a_e if a_d.to_time.to_i<=a_e.to_time.to_i then raise RuntimeError, 'Please provide a valid d and e [d>e]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_d(a_d) was_set = false if a_d.to_time.to_i>get_e().to_time.to_i then @d = a_d was_set = true end was_set end def set_e(a_e) was_set = false if get_d().to_time.to_i>a_e.to_time.to_i then @e = a_e was_set = true end was_set end def get_d @d end def get_e @e end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class Client #------------------------ # MEMBER VARIABLES #------------------------ #Client Attributes - for documentation purposes #attr_reader :minAge #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_minAge) @initialized = false @deleted = false @minAge = a_minAge @initialized = true end #------------------------ # INTERFACE #------------------------ def set_minAge(a_minAge) was_set = false @minAge = a_minAge was_set = true was_set end def get_minAge @minAge end def delete @deleted = true end def someMethod (arg) result = someMethod_original(arg) if arg<=5 then raise RuntimeError, 'Please provide a valid arg' end return result end def someMethod_original(arg) // rest of stuff that we don't interpret return 0; end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class Client #------------------------ # MEMBER VARIABLES #------------------------ #Client Attributes - for documentation purposes #attr_reader :minAge #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_minAge) @initialized = false @deleted = false @minAge = a_minAge @initialized = true end #------------------------ # INTERFACE #------------------------ def set_minAge(a_minAge) was_set = false @minAge = a_minAge was_set = true was_set end def get_minAge @minAge end def delete @deleted = true end def someMethod (arg) if arg<=5 then raise RuntimeError, 'Please provide a valid arg' end if get_minAge()>=8 then raise RuntimeError, 'Please provide a valid minAge' end // rest of stuff that we don't interpret return 0; end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class MultipleConstraints #------------------------ # MEMBER VARIABLES #------------------------ #MultipleConstraints Attributes - for documentation purposes #attr_reader :i, :j #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_i, a_j) @initialized = false @deleted = false @i = a_i @j = a_j if a_i<0 then raise RuntimeError, 'Please provide a valid i [i>=0]' end if a_j<0 then raise RuntimeError, 'Please provide a valid j [j>=0]' end if a_i<a_j then raise RuntimeError, 'Please provide a valid i and j [i>=j]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_i(a_i) was_set = false if a_i>=get_j() then if a_i>=0 then @i = a_i was_set = true end end was_set end def set_j(a_j) was_set = false if get_i()>=a_j then if a_j>=0 then @j = a_j was_set = true end end was_set end def get_i @i end def get_j @j end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class student #------------------------ # MEMBER VARIABLES #------------------------ #student Attributes - for documentation purposes #attr_reader :age #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_age) @initialized = false @deleted = false @age = a_age if a_age<=18 then raise RuntimeError, 'Please provide a valid age [age>18]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_age(a_age) was_set = false if a_age>18 then @age = a_age was_set = true end was_set end def get_age @age end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP # attributes on both sides of the constraint's boolean expression class Client #------------------------ # MEMBER VARIABLES #------------------------ #Client Attributes - for documentation purposes #attr_reader :minAge, :age #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_minAge, a_age) @initialized = false @deleted = false @minAge = a_minAge @age = a_age if a_age<=a_minAge then raise RuntimeError, 'Please provide a valid age and minAge [age>minAge]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_minAge(a_minAge) was_set = false if get_age()>a_minAge then @minAge = a_minAge was_set = true end was_set end def set_age(a_age) was_set = false if a_age>get_minAge() then @age = a_age was_set = true end was_set end def get_minAge @minAge end def get_age @age end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class student #------------------------ # MEMBER VARIABLES #------------------------ #student Attributes - for documentation purposes #attr_reader :age, :weight #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_age, a_weight) @initialized = false @deleted = false @age = a_age @weight = a_weight if a_weight>=3||a_age<=18 then raise RuntimeError, 'Please provide a valid age and weight [weight<3&&age>18]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_age(a_age) was_set = false if get_weight()<3&&a_age>18 then @age = a_age was_set = true end was_set end def set_weight(a_weight) was_set = false if a_weight<3&&get_age()>18 then @weight = a_weight was_set = true end was_set end def get_age @age end def get_weight @weight end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class student #------------------------ # MEMBER VARIABLES #------------------------ #student Attributes - for documentation purposes #attr_reader :age, :weight #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_age, a_weight) @initialized = false @deleted = false @age = a_age @weight = a_weight if a_weight>=3&&a_age<=18 then raise RuntimeError, 'Please provide a valid age and weight [weight<3||age>18]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_age(a_age) was_set = false if get_weight()<3||a_age>18 then @age = a_age was_set = true end was_set end def set_weight(a_weight) was_set = false if a_weight<3||get_age()>18 then @weight = a_weight was_set = true end was_set end def get_age @age end def get_weight @weight end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class student #------------------------ # MEMBER VARIABLES #------------------------ #student Attributes - for documentation purposes #attr_reader :age, :weight #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_age, a_weight) @initialized = false @deleted = false @age = a_age @weight = a_weight if (a_age>18) then raise RuntimeError, 'Please provide a valid age [age<=18]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_age(a_age) was_set = false if (a_age<=18) then @age = a_age was_set = true end was_set end def set_weight(a_weight) was_set = false @weight = a_weight was_set = true was_set end def get_age @age end def get_weight @weight end def delete @deleted = true end end # PLEASE DO NOT EDIT THIS CODE # This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language! # NOTE: Ruby generator is experimental and is missing some features available in # in other Umple generated languages like Java or PHP class student #------------------------ # MEMBER VARIABLES #------------------------ #student Attributes - for documentation purposes #attr_reader :age, :weight #------------------------ # CONSTRUCTOR #------------------------ def initialize(a_age, a_weight) @initialized = false @deleted = false @age = a_age @weight = a_weight if a_age>=10||(a_age>=10) then raise RuntimeError, 'Please provide a valid age [age<10&&age<10]' end @initialized = true end #------------------------ # INTERFACE #------------------------ def set_age(a_age) was_set = false if a_age<10&&(a_age<10) then @age = a_age was_set = true end was_set end def set_weight(a_weight) was_set = false @weight = a_weight was_set = true was_set end def get_age @age end def get_weight @weight end def delete @deleted = true end end