|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.LearnableActionPattern
public class LearnableActionPattern
A LearnableActionPattern encapsulates the various constructs within the LAP file as an arraylist of elements which are drive collections, action patterns and competances
Field Summary | |
---|---|
private java.util.ArrayList |
alElements
|
private Documentation |
documentation
|
private static int |
elementsMade
|
Constructor Summary | |
---|---|
LearnableActionPattern()
Initialize this BOD object with an empty set of definitions. |
|
LearnableActionPattern(java.util.ArrayList elements)
Initialize this BOD file with a pre-loaded arraylist of elements. |
|
LearnableActionPattern(java.util.ArrayList elements,
Documentation d)
Initialize this BOD file with a pre-loaded list of elements and some documentation |
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Don't call this on ourselves |
boolean |
containsElementNamed(java.lang.String name)
Do we contain an element with the name given? |
Documentation |
getDocumentation()
|
IEditableElement |
getElementNamed(java.lang.String name)
Get an element with the name given |
java.util.ArrayList |
getElements()
Expose the arraylist to other classes |
void |
onSelect(JAbode mainGui,
JEditorWindow subGui,
JDiagram diagram)
Populate the property grid |
void |
scanActionTree(JTreeNode deNode,
java.lang.String action,
boolean detailed,
boolean expanded)
Add the specified node summary beneath the current node (i.e in overview mode, use to add the sub-tree for the action pattern or competence in question) |
void |
setDocumentation(Documentation d)
|
void |
showContextMenu(JTreeNode showOn,
LearnableActionPattern lap,
JEditorWindow window,
JDiagram diagram)
Produce and show a context menu for this object |
JTreeNode |
toActionTree()
Produce a diagram tree hierarchy of action pattern elements |
JTreeNode |
toCompetenceTree()
Produce a tree hierarchy of competence elements |
JTreeNode |
toDriveTree()
Produce a tree hierarchy of drive elements |
JTreeNode |
toLogicTree()
Produce a logic tree |
JTreeNode |
toOverviewTree()
Produce an overview tree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList alElements
private Documentation documentation
private static int elementsMade
Constructor Detail |
---|
public LearnableActionPattern()
public LearnableActionPattern(java.util.ArrayList elements)
public LearnableActionPattern(java.util.ArrayList elements, Documentation d)
Method Detail |
---|
public Documentation getDocumentation()
public void setDocumentation(Documentation d)
public java.util.ArrayList getElements()
public boolean containsElementNamed(java.lang.String name)
public IEditableElement getElementNamed(java.lang.String name)
public JTreeNode toOverviewTree()
public JTreeNode toLogicTree()
public void scanActionTree(JTreeNode deNode, java.lang.String action, boolean detailed, boolean expanded)
public JTreeNode toCompetenceTree()
public JTreeNode toActionTree()
public JTreeNode toDriveTree()
public JTreeNode buildTree(JTreeNode root, LearnableActionPattern lap, boolean detailed, boolean expanded)
buildTree
in interface IEditableElement
public void onSelect(JAbode mainGui, JEditorWindow subGui, JDiagram diagram)
onSelect
in interface IEditableElement
mainGui
- The reference to the outer GUIsubGui
- The internal frame we're referring todiagram
- The diagram we're being select on.public void showContextMenu(JTreeNode showOn, LearnableActionPattern lap, JEditorWindow window, JDiagram diagram)
showContextMenu
in interface IEditableElement
showOn
- The tree node invoking uslap
- The file we're a part ofwindow
- The window we're being dispalyed indiagram
- The diagram in the window we'return being shown on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |