|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.x8ing.mc.bp.AbstractBusinessAction
public abstract class AbstractBusinessAction
Provides some functionality which is useful in context of business processes.
Controls the simulation time.
| Field Summary | |
|---|---|
protected BusinessContext |
businessContext
subclasses might use this. |
protected ProcessableState |
currentState
|
| Constructor Summary | |
|---|---|
AbstractBusinessAction()
|
|
| Method Summary | |
|---|---|
protected void |
addBalanceSheetTransaction(java.lang.String text,
double amount,
BalanceAccount balanceAccount)
|
protected void |
addLogBookEntry(java.lang.String text)
convenience method. |
abstract void |
execute(ProcessableState currentState,
BusinessContext businessContext,
Condition previousCondition,
java.util.List lastVisitedStatesHistory)
abstract to force implementors to implement that method. |
void |
execute(ProcessableState currentState,
StateContext stateContext,
Condition previousCondition,
java.util.List lastVisitedStatesHistory)
Will be invoked to process the current state. |
protected abstract void |
lazyInit()
hook just before the execute will be executed. will just be called once in the lifetime of an action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BusinessContext businessContext
protected ProcessableState currentState
| Constructor Detail |
|---|
public AbstractBusinessAction()
| Method Detail |
|---|
public final void execute(ProcessableState currentState,
StateContext stateContext,
Condition previousCondition,
java.util.List lastVisitedStatesHistory)
Action
execute in interface ActionlastVisitedStatesHistory - Contains the last visited states as a list. The element with
index 0 ist the current State. The size of the history is
defined in the graph. Type: ProcessableStateAction.execute(com.x8ing.lsm4j.state.ProcessableState, com.x8ing.lsm4j.StateContext,
com.x8ing.lsm4j.Condition, java.util.List)protected abstract void lazyInit()
public abstract void execute(ProcessableState currentState,
BusinessContext businessContext,
Condition previousCondition,
java.util.List lastVisitedStatesHistory)
currentState - businessContext - previousCondition - lastVisitedStatesHistory - protected void addLogBookEntry(java.lang.String text)
text -
protected void addBalanceSheetTransaction(java.lang.String text,
double amount,
BalanceAccount balanceAccount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||