|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.DriveCollection
public class DriveCollection
A (RealTime/Discrete Time) drive collection is a named goal and a set of drive elements that work to achieve that goal.
Field Summary | |
---|---|
private java.util.ArrayList |
alDriveElements
|
private java.util.ArrayList |
alGoal
|
private boolean |
bIsRealTime
|
private int |
driveElement
|
private java.lang.String |
strName
|
Constructor Summary | |
---|---|
DriveCollection(java.lang.String name,
boolean realTime,
java.util.ArrayList goal,
java.util.ArrayList elements)
Initialize this drive collection |
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Build the tree structure of the file |
java.util.ArrayList |
getDriveElements()
Get our list of drive elements |
java.util.ArrayList |
getGoal()
Get the arraylist of actionelements that comprise our goal |
java.lang.String |
getName()
Get the name of this drive collection |
boolean |
getRealTime()
Get whether or not this is a real-time drive collection |
DriveCollection |
getSelf()
Get reference back this object for inner class |
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 |
setDriveElements(java.util.ArrayList drive)
Set our list of drive elements to be some new list |
void |
setGoal(java.util.ArrayList goal)
Set our goal list |
void |
setName(java.lang.String name)
Reset the name of this drive element |
void |
setRealTime(boolean real)
Set whether or not this is a real-time drive collection |
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 boolean bIsRealTime
private java.lang.String strName
private java.util.ArrayList alGoal
private java.util.ArrayList alDriveElements
private int driveElement
Constructor Detail |
---|
public DriveCollection(java.lang.String name, boolean realTime, java.util.ArrayList goal, java.util.ArrayList elements)
name
- Name of the collectionrealTime
- Is this a real-time drive collection?elements
- Arraylist of drive elements (or lists thereof, to be more
precise)Method Detail |
---|
public void setName(java.lang.String name)
name
- New name of the drive collectionpublic java.lang.String getName()
public java.util.ArrayList getDriveElements()
public java.util.ArrayList getGoal()
public boolean getRealTime()
public void setDriveElements(java.util.ArrayList drive)
drive
- Drive element lists .public void setGoal(java.util.ArrayList goal)
public void setRealTime(boolean real)
real
- Real time if true, discrete time if notpublic DriveCollection getSelf()
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 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 |