|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Claimable
An object "claimed" by a single actor, typically a plugin instance.
For example, a Claimable object would likely be "claimed" by a plugin when that plugin creates the object or the object is added into the blackboard.
Claiming of objects is done by the infrastruture *only* - plugins should *never* call claim().
| Method Summary | |
|---|---|
java.lang.Object |
getClaim()
|
boolean |
isClaimed()
|
void |
resetClaim(java.lang.Object oldClaimHolder)
Release a Claim on the object. |
void |
setClaim(java.lang.Object putativeClaimHolder)
Stake a Claim on the object. |
boolean |
tryClaim(java.lang.Object putativeClaimHolder)
Try to stake a Claim on the object. |
| Method Detail |
|---|
boolean isClaimed()
java.lang.Object getClaim()
void setClaim(java.lang.Object putativeClaimHolder)
java.lang.IllegalArgumentException - If there is already a Claim
on the object which is not == the putativeClaimHolder.boolean tryClaim(java.lang.Object putativeClaimHolder)
void resetClaim(java.lang.Object oldClaimHolder)
IllegalArgumentExcpeiton - If the object is not
currently claimed, or is claimed by someone else.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||