User Tools

Site Tools


can_a_role_be_played_by_several_different_objects_in_a_given_context_instantiation

This is an old revision of the document!


Can a Role be played by several different objects in a given Context instantiation?

No. All Roles are bound as an atomic operation before an Interaction starts. And the Role being an alias for a single object, means that there can only be one object per Role during an Interaction.

Why is switching (rebinding during Interaction) a problem? Imagine switching your favorite James Bond actor for your least favorite during the same movie.

Note: The Roles can all be rebound before another Interaction in the same Context occurs.

can_a_role_be_played_by_several_different_objects_in_a_given_context_instantiation.1390183048.txt.gz · Last modified: 2014/01/20 01:57 by gazoot