|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The classes that implement this interface are objects that can participate to a collaboration.
This includes the ability to get the current wrappee, method and arguments of the call that is currently proceeded, and the ability to define and retrieve attributes from the current collaboration flow.
The classes that implement this interface use the
Collaboration
class.
Collaboration
Method Summary | |
Object |
arg(int nth)
Returns the nth argument of the current collaboration point method (see args() ). |
Object[] |
args()
Returns the args that have been passed to the method (see method() ). |
Object |
attr(String name)
Get an attribute value for the current collaboration. |
void |
attrdef(String name,
Object value)
Add an attribute to the current collaboration. |
AbstractMethodItem |
method()
Returns the method name that have been called on the wrappee during the current collaboration point (method call). |
void |
setarg(int nth,
Object value)
Sets the nth argument value. |
void |
setargs(Object[] values)
Sets the argument values. |
Wrappee |
wrappee()
Returns the wrappee of the current call, that is to say the base program object that have been called during the current collaboration point (method call). |
Method Detail |
public void attrdef(String name, Object value)
A attribute is an attribute that is visible from all the objects of the local JAC container. I can propagate to remote containers when remote objects are called on this container if it is defined global.
name
- the name of the attribute.value
- its value (must be serializable if the attribute is
global), null undefines the attributeCollaboration.addAttribute(String,Object)
public Object attr(String name)
name
- the name of the collaboration attribute.
Collaboration.getAttribute(String)
public Wrappee wrappee()
public AbstractMethodItem method()
public Object[] args()
method()
).
public Object arg(int nth)
args()
).
nth
- the zero-indexed argument index
public void setarg(int nth, Object value)
nth
- the zero-indexed argument indexvalue
- the new valuepublic void setargs(Object[] values)
values
- the new values
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |