|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface IPresenterFactory
Interface for factory creating the presenters for yaposh scene. Presenters
are responsible for updating the scene according to underlying changes of the
plan.
TODO: Once done paths are checked, remove obsolete chain and elements
parameters from methods.
Be careful when implementing the presenters, you can't store LapPath
in them, because stuff can move around.
| Method Summary | ||
|---|---|---|
IPresenter |
createActionPatternPresenter(LapPath actionPatternPath,
TriggeredAction referencingAction,
ActionPattern actionPattern,
ShedVariableWidget actionPatternWidget,
LapChain chain)
Create presenter for action pattern widget. |
|
IPresenter |
createActionPresenter(LapPath actionPath,
TriggeredAction action,
ShedVariableWidget actionWidget,
LapChain actionChain)
Create presenter for primitive action. |
|
IPresenter |
createActionsPresenter(LapPath actionPatternPath,
ActionPattern actionPattern,
ShedActionsEnvelope actionsEnvelope,
LapChain actionPatternChainchain)
Create presenter that will take care about keeping adding/moving/removing expanded actions in the ShedActionsEnvelope for ActionPattern. |
|
IPresenter |
createChoicePresenter(LapPath choicePath,
CompetenceElement choice,
ShedVariableWidget choiceWidget)
Create presenter for choice widget, only the widget, not its trigger nor action. |
|
IPresenter |
createChoicesPresenter(LapPath competencePath,
Competence competence,
ShedChoicesEnvelope choicesEnvelope,
LapChain competenceChainchain)
Create presenter responsible for adding, moving and removing choices widgets
in the ShedChoicesEnvelope. |
|
IPresenter |
createCompetencePresenter(LapPath competencePath,
TriggeredAction referencingAction,
Competence competence,
ShedVariableWidget competenceWidget,
LapChain chain)
Create presenter for competence widget. |
|
IPresenter |
createDriveCollectionPresenter(LapPath driveCollectionPath,
DriveCollection driveCollection)
Create presenter for drive collection, responsible for keeping track of added/moved/removed drives. |
|
IPresenter |
createDrivePresenter(LapPath drivePath,
DriveElement drive,
ShedVariableWidget widget)
Create presenter for drive widget. |
|
IPresenter |
createExpandedActionPresenter(TriggeredAction action,
ExpandedActionEnvelope envelope,
LapChain chain)
Create presenter for expanded action, i.e. |
|
IPresenter |
createSensePresenter(LapPath sensePath,
Sense sense,
ShedSenseWidget senseWidget,
LapChain senseChain)
Create presenter for sense at @sensePath that will present the sense in the @senseWidget. |
|
|
createTriggerPresenter(TRIGGER_PARENT parent,
Trigger<TRIGGER_PARENT> trigger,
ShedTriggerEnvelope triggerEnvelope,
LapChain parentChain)
Create presenter for trigger, it is responsible for keepeing track of added/moved/removed senses. |
|
| Method Detail |
|---|
IPresenter createActionPresenter(LapPath actionPath,
TriggeredAction action,
ShedVariableWidget actionWidget,
LapChain actionChain)
actionPath - Path to the action in the planaction - Action the presenter is presenting.actionWidget - The widget that represents the @action in the scene.actionChain - Parameter chain to the action.
IPresenter createExpandedActionPresenter(TriggeredAction action,
ExpandedActionEnvelope envelope,
LapChain chain)
action - Action that was expnandedenvelope - Envelope that contains expanded action in the scenechain - Parameter chain up to the branch node right before the
IPresenter createSensePresenter(LapPath sensePath,
Sense sense,
ShedSenseWidget senseWidget,
LapChain senseChain)
sensePath - Path to the sense in the plansense - Sense that is being presentedsenseWidget - Widget that represents the sense in the scene.senseChain - Parameter chain up to including sense.
<TRIGGER_PARENT extends PoshElement> IPresenter createTriggerPresenter(TRIGGER_PARENT parent,
Trigger<TRIGGER_PARENT> trigger,
ShedTriggerEnvelope triggerEnvelope,
LapChain parentChain)
TRIGGER_PARENT - Owner of the triggerparent - The posh element this trigger belongs totrigger - Presented triggertriggerEnvelope - Envelope representing the trigger in the scene.parentChain - Parameter chain of the triggers owner
IPresenter createDriveCollectionPresenter(LapPath driveCollectionPath,
DriveCollection driveCollection)
driveCollectionPath - Path to the DCdriveCollection - Presented drive collection
IPresenter createActionPatternPresenter(LapPath actionPatternPath,
TriggeredAction referencingAction,
ActionPattern actionPattern,
ShedVariableWidget actionPatternWidget,
LapChain chain)
actionPatternPath - Path to the action pattern, path ends with
../A:?/AP:?referencingAction - The action that referenced the action patternactionPattern - Presented ActionPattern.actionPatternWidget - Widget representing the AP.chain - Parameter chain to AP (incl).
IPresenter createCompetencePresenter(LapPath competencePath,
TriggeredAction referencingAction,
Competence competence,
ShedVariableWidget competenceWidget,
LapChain chain)
competencePath - Path to the competence, path ends with
../A:?/C:?referencingAction - Action referencing the competence.competence - Presented competence.competenceWidget - Widget representing the competence in the scene.chain - Parameter chain up to incl. competence.
IPresenter createChoicePresenter(LapPath choicePath,
CompetenceElement choice,
ShedVariableWidget choiceWidget)
choicePath - Path to the choice, it will end with
../A:?/C:?/CE:?choice - Presented choice.choiceWidget - Widget representing the choice in the scene.
IPresenter createDrivePresenter(LapPath drivePath,
DriveElement drive,
ShedVariableWidget widget)
drivePath - Path to drive, ../DE:?drive - Presented drivewidget - Widget representing the drive in the scene.
IPresenter createActionsPresenter(LapPath actionPatternPath,
ActionPattern actionPattern,
ShedActionsEnvelope actionsEnvelope,
LapChain actionPatternChainchain)
ShedActionsEnvelope for ActionPattern.
actionPatternPath - Path to the action pattern, ends with
../AP:?.actionPattern - AP that contains the presented actionsactionsEnvelope - Envelope that contains representations of the
actions.actionPatternChain - Chain to the @actionPattern of the actions.
IPresenter createChoicesPresenter(LapPath competencePath,
Competence competence,
ShedChoicesEnvelope choicesEnvelope,
LapChain competenceChainchain)
choices widgets
in the ShedChoicesEnvelope.
competencePath - Path to the competence whose choices are managed.
Ends with ../A:?/C:?.competence - Competence that contains presented choices.choicesEnvelope - Envelope containing the representations of presented choices.competenceChain - Chain to the @competence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||