|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.DriveElement
public class DriveElement
A Drive Element is a name, a trigger list of action elements and a named action, and an optional timeout for scheduling frequency
Field Summary | |
---|---|
private java.util.ArrayList |
alTrigger
|
private java.lang.String |
documentation
|
private int |
senseCount
|
private java.lang.String |
strAction
|
private java.lang.String |
strName
|
private TimeUnit |
tFrequency
|
Constructor Summary | |
---|---|
DriveElement(java.lang.String name,
java.util.ArrayList trigger,
java.lang.String action)
Create this drive element with a name, trigger (list of actionelements) and a corresponding action name to invoke. |
|
DriveElement(java.lang.String name,
java.util.ArrayList trigger,
java.lang.String action,
TimeUnit freq)
Create this drive element, with a name, trigger (list of action elements) and a corresponding name of action to invoke, as well as a scheduling frequency. |
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Build the tree structure of the file |
java.lang.String |
getAction()
Get the name of the action we invoke |
java.lang.String |
getDocumentation()
Get the documentation string for this element |
TimeUnit |
getFrequency()
Get the scheduling frequency of this drive element |
java.lang.String |
getName()
Get the name of this drive element |
DriveElement |
getSelf()
Get a reference back to the drive element itself, since sometimes inner classes have some truly horrible syntax for referring back to the parent class. |
java.util.ArrayList |
getTrigger()
Get our trigger list |
void |
onSelect(JAbode mainGui,
JEditorWindow subGui,
JDiagram diagram)
When we click this Action Element in the GUI populate the properties panel with the various attributes and setup listeners to catch modifications that are made. |
void |
setAction(java.lang.String act)
Set our action name to invoke |
void |
setDocumentation(java.lang.String docString)
Set the documentation string for this element |
void |
setFrequency(TimeUnit time)
Set our scheduling frequency |
void |
setName(java.lang.String name)
Set the name of this drive element |
void |
setTrigger(java.util.ArrayList trigger)
Set our trigger (Should be arraylist of actionelement objects) |
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 alTrigger
private java.lang.String strAction
private TimeUnit tFrequency
private java.lang.String documentation
private int senseCount
Constructor Detail |
---|
public DriveElement(java.lang.String name, java.util.ArrayList trigger, java.lang.String action)
name
- Name of the drive elementtrigger
- Arraylist of action elements comprising our triggeraction
- POSH Root to triggerpublic DriveElement(java.lang.String name, java.util.ArrayList trigger, java.lang.String action, TimeUnit freq)
name
- Name of the drive elementtrigger
- Arraylist of action elements comprising our triggeraction
- Posh root to triggerfreq
- Frequency specification for this drive elementMethod Detail |
---|
public java.lang.String getAction()
public TimeUnit getFrequency()
public java.lang.String getName()
public java.util.ArrayList getTrigger()
public java.lang.String getDocumentation()
public void setDocumentation(java.lang.String docString)
docString
- New documentation stringpublic void setAction(java.lang.String act)
act
- Action name.public void setFrequency(TimeUnit time)
time
- New frequencypublic void setName(java.lang.String name)
public void setTrigger(java.util.ArrayList trigger)
trigger
- Arraylist of action elements comprising the triggerpublic 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 DriveElement 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |