|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.Competence
public class Competence
A competence is a named list of lists of competence elements with a goal and an interval
Field Summary | |
---|---|
private java.util.ArrayList |
alElementLists
|
private java.util.ArrayList |
alGoal
|
private static int |
compElement
|
private java.lang.String |
documentation
|
private java.lang.String |
strName
|
private TimeUnit |
tTimeout
|
Constructor Summary | |
---|---|
Competence(java.lang.String name,
TimeUnit timeUnit)
Create an empty competence with only a name and a time unit, and put some default values for our goal and element lists |
|
Competence(java.lang.String name,
TimeUnit timeUnit,
java.util.ArrayList goal,
java.util.ArrayList elementLists)
Create this competence with a name, ymir-like timeout and a goal (Arraylist of actionelements) as well as an arraylist of arraylists of CompetenceElements comprising the competence itself. |
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Convert this element into a tree branch |
java.lang.String |
getDocumentation()
Get the documentation string for this element |
java.util.ArrayList |
getElementLists()
Get our list of element lists |
java.util.ArrayList |
getGoal()
Get the goal list |
java.lang.String |
getName()
Get the name of this element |
IEditableElement |
getSelf()
Get a reference to this object. |
TimeUnit |
getTimeout()
Get the timeout of this competence |
void |
onSelect(JAbode mainGui,
JEditorWindow subGui,
JDiagram diagram)
When we click this Competence in the GUI populate the properties panel with the various attributes and setup listeners to catch modifications that are made. |
void |
setDocumentation(java.lang.String docString)
Set the documentation string for this element |
void |
setElementLists(java.util.ArrayList lists)
Set our arraylist of element lists |
void |
setGoal(java.util.ArrayList goal)
Set the goal |
void |
setName(java.lang.String name)
Set the name of this element |
void |
setTimeout(TimeUnit timeout)
Set the timeout of this competence. |
void |
showContextMenu(JTreeNode showOn,
LearnableActionPattern lap,
JEditorWindow window,
JDiagram diagram)
Produce and show a context menu for this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String strName
private java.util.ArrayList alElementLists
private java.util.ArrayList alGoal
private TimeUnit tTimeout
private java.lang.String documentation
private static int compElement
Constructor Detail |
---|
public Competence(java.lang.String name, TimeUnit timeUnit)
name
- Name of this competencetimeUnit
- Timeoutpublic Competence(java.lang.String name, TimeUnit timeUnit, java.util.ArrayList goal, java.util.ArrayList elementLists)
name
- Name of the competencetimeUnit
- Timeoutgoal
- Goal to try and obtainelementLists
- Lists of lists of competence elements that comprise the
actions etc.Method Detail |
---|
public java.util.ArrayList getElementLists()
public java.util.ArrayList getGoal()
public java.lang.String getName()
getName
in interface INamedElement
public TimeUnit getTimeout()
public java.lang.String getDocumentation()
public void setDocumentation(java.lang.String docString)
docString
- New documentation stringpublic void setElementLists(java.util.ArrayList lists)
lists
- List of lists of competence elementspublic void setGoal(java.util.ArrayList goal)
goal
- Arraylist of actionelements that comprises the goalpublic void setName(java.lang.String name)
setName
in interface INamedElement
name
- Name of the objectpublic void setTimeout(TimeUnit timeout)
timeout
- Timeout valuepublic void onSelect(JAbode mainGui, JEditorWindow subGui, JDiagram diagram)
onSelect
in interface IEditableElement
mainGui
- Reference to the MDIsubGui
- Reference to the editor windowdiagram
- Diagram refernece on our editing windowpublic IEditableElement getSelf()
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 onpublic JTreeNode buildTree(JTreeNode root, LearnableActionPattern lap, boolean detailed, boolean expanded)
buildTree
in interface IEditableElement
root
- The root of this sub-treelap
- The learnable action pattern file we're part of.detailed
- Is the diagram detailed (i.e. decorative nodes)expanded
- Is this diagram expanded (i.e. show sub-tree chained elements)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |