|
|||||||||
| Home >> All >> org >> metacosm >> framework >> interact >> [ actions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.metacosm.framework.interact.actions
Class Buy

java.lang.Objectorg.metacosm.framework.interact.BasicAction
org.metacosm.framework.interact.actions.Buy
- All Implemented Interfaces:
- org.metacosm.framework.interact.Action, org.metacosm.framework.persistence.Persistent, java.io.Serializable
- public class Buy
- extends org.metacosm.framework.interact.BasicAction
Standard implementation of "Buy" action
ActionId = BuyActionID
| Field Summary |
| Fields inherited from class org.metacosm.framework.interact.BasicAction |
|
| Fields inherited from interface org.metacosm.framework.interact.Action |
COMPLETED_ACTION, CONTINUING_ACTION, FAILED_ACTION |
| Constructor Summary | |
Buy()
|
|
| Method Summary | |
java.lang.String |
getActionId()
Returns the hardwired ActionID. |
org.metacosm.framework.interact.ActionState |
mayStart(org.metacosm.framework.entity.Entity[] invokers,
org.metacosm.framework.entity.Entity[] receivers,
java.lang.Object[] parameters,
org.metacosm.framework.interact.IntentionFA intention)
MayStart predicate determines if an action can be started. |
int |
perform(org.metacosm.framework.interact.ActionState state)
Performs or continues an action already started. |
| Methods inherited from class org.metacosm.framework.interact.BasicAction |
load, mayStart, save, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
Buy
public Buy()
| Method Detail |
getActionId
public java.lang.String getActionId()
- Returns the hardwired ActionID.
that was choosen for this action at development time.
perform
public int perform(org.metacosm.framework.interact.ActionState state)
- Performs or continues an action already started.
mayStart
public org.metacosm.framework.interact.ActionState mayStart(org.metacosm.framework.entity.Entity[] invokers, org.metacosm.framework.entity.Entity[] receivers, java.lang.Object[] parameters, org.metacosm.framework.interact.IntentionFA intention) throws org.metacosm.framework.interact.BadParameterException
- MayStart predicate determines if an action can be started.
If yes, perform initialization of ActionState object.
For now, Tell can always be started.
|
|||||||||
| Home >> All >> org >> metacosm >> framework >> interact >> [ actions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC