Class: NaryAssociation
Defined in: | web-src/coffee/model/uml/naryassociation.coffee |
Inherits: | model.MyModel |
Overview
A Link between two classes or more classes.
This give support for two (using from() or to()) or more classes.
Instance Method Summary
- # (void) get_role() Following functions returns each one of the roles associated "u" roles mean user defined roles and f = from/t = to.
- # (void) add_roleTo_assoc(role)
- # (void) set_roles(user_d_role, class_r, mult, role) Set the roles.
- # (void) get_assoc_labels()
- # (void) add_class(class_a)
- # (void) has_role(role)
- # (void) has_role_to_class(class_a)
- # (void) remove_role(role)
- # (void) set_from(class_from) @param class_from an instance of Class.
- # (void) get_from()
- # (void) set_to(class_to)
- # (void) get_to()
- # (void) get_classes()
- # (void) set_association_class(associationClass)
- # (void) get_association_class()
- # (void) is_two_linked() True if a two-linked relation.
- # (?) has_parent(parentclass) Implement in the subclass if necesary.
- # (?) has_association_class() Check is n-ary association is with class
- # (void) to_json()
- # (void) create_joint(factory, csstheme = null)
- # (boolean) same_elts(other) Compare the relevant elements of these links.
Constructor Details
#
(void)
constructor(classes, name = null, position)
Instance Method Details
#
(void)
get_role()
Following functions returns each one of the roles associated "u" roles mean user defined roles and f = from/t = to. "d" roles mean default roles and f = from/t = to. They take the class name.
#
(void)
add_roleTo_assoc(role)
#
(void)
set_roles(user_d_role, class_r, mult, role)
Set the roles. Roles are first citizen objects so that more resposabilities are assigned.
#
(void)
get_assoc_labels()
#
(void)
add_class(class_a)
#
(void)
has_role(role)
#
(void)
has_role_to_class(class_a)
#
(void)
remove_role(role)
#
(void)
set_from(class_from)
@param class_from an instance of Class.
#
(void)
get_from()
#
(void)
set_to(class_to)
#
(void)
get_to()
#
(void)
get_classes()
#
(void)
set_association_class(associationClass)
#
(void)
get_association_class()
#
(void)
is_two_linked()
True if a two-linked relation. False otherwise.
#
(?)
has_parent(parentclass)
Implement in the subclass if necesary.
#
(?)
has_association_class()
Check is n-ary association is with class
#
(void)
to_json()
#
(void)
create_joint(factory, csstheme = null)
#
(boolean)
same_elts(other)
Compare the relevant elements of these links.