Class: BinaryAssociation
Defined in: | web-src/coffee/model/uml/binary_association.coffee |
Inherits: | model.Link |
Overview
A Link between two classes.
Instance Method Summary
- # (void) set_role_from(user_d_role, class_r, mult) Set the roles.
- # (void) set_role_to(user_d_role, class_r, mult) Set the roles.
- # (void) get_role()
- # (void) get_role_from() Following functions returns each one of the roles associated "u" roles mean user defined roles and f = from/t = to.
- # (void) get_role_to()
- # (void) change_mult_to_null(mult, index)
- # (void) change_roles_to_null(roles, index)
- # (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()
- # (?) has_parent(parentclass) Implement in the subclass if necesary.
- # (?) has_association_class() Check is binary association is with class.
- # (Boolean) is_associated(c) Is this link associated to the given 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, inferred = false)
Instance Method Details
#
(void)
set_role_from(user_d_role, class_r, mult)
Set the roles. Roles are first citizen objects so that more resposabilities are assigned.
#
(void)
set_role_to(user_d_role, class_r, mult)
Set the roles. Roles are first citizen objects so that more resposabilities are assigned.
#
(void)
get_role()
#
(void)
get_role_from()
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)
get_role_to()
#
(void)
change_mult_to_null(mult, index)
#
(void)
change_roles_to_null(roles, index)
#
(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()
#
(?)
has_parent(parentclass)
Implement in the subclass if necesary.
#
(?)
has_association_class()
Check is binary association is with class. However, this function returns always false for links.
#
(Boolean)
is_associated(c)
Is this link associated to the given class?
#
(void)
to_json()
#
(void)
create_joint(factory, csstheme = null)
#
(boolean)
same_elts(other)
Compare the relevant elements of these links.