gishur.core
Interface Owner
- All Known Implementing Classes:
- BasicList, BasicTree, Graph
- public interface Owner
Objects that implement Owner
will have to be asked for permission by
member objects, before these may change their internal state.
The request is performed by a call to the
owners requestAccess(int, java.lang.Object, java.lang.Object)
-method.
- Version:
- 1.0
- Author:
- Thomas Wolf
Method Summary |
boolean |
requestAccess(int accesstype,
java.lang.Object who,
java.lang.Object argument)
The member object who asks the owner (this ) for
permission to perform an action of the type accesstype with the
given argument. |
requestAccess
public boolean requestAccess(int accesstype,
java.lang.Object who,
java.lang.Object argument)
- The member object
who
asks the owner (this
) for
permission to perform an action of the type accesstype
with the
given argument.
- Parameters:
accesstype
- specifies the action the member wants to performwho
- the member object that asks for accessargument
- optional argument to the members action- Returns:
true
, if the owner permits the action, else
false