|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--edu.umich.visualsoar.operatorwindow.TreeNode | +--edu.umich.visualsoar.operatorwindow.OperatorNode
This is the basis class for which all operator nodes are derived
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
protected static javax.swing.JMenuItem |
addFileItem
|
protected static javax.swing.JMenuItem |
addSuboperatorItem
|
protected static javax.swing.JMenuItem |
checkChildrenAgainstDataMapItem
|
protected static javax.swing.JMenuItem |
conflictImpasseItem
|
protected static javax.swing.JMenuItem |
constraintImpasseItem
|
protected static javax.swing.JPopupMenu |
contextMenu
|
protected static javax.swing.JMenuItem |
deleteItem
|
protected static javax.swing.JMenuItem |
exportItem
|
protected int |
id
|
protected static javax.swing.JMenu |
impasseSubMenu
|
protected static javax.swing.JMenuItem |
importItem
|
protected java.lang.String |
name
|
protected static javax.swing.JMenuItem |
openDataMapItem
|
protected static javax.swing.JMenuItem |
openRulesItem
|
protected static javax.swing.JMenuItem |
renameItem
|
protected static javax.swing.JMenuItem |
stateNoChangeImpasseItem
|
protected static javax.swing.JMenuItem |
tieImpasseItem
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
OperatorNode(java.lang.String inName,
int inId)
Constructor |
Method Summary | |
void |
addFile(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
java.lang.String newFileName)
Overloaded operation |
edu.umich.visualsoar.operatorwindow.OperatorNode |
addFileOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newFileName)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
edu.umich.visualsoar.operatorwindow.OperatorNode |
addImpasseOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newOperatorName)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
void |
addLink(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
|
edu.umich.visualsoar.operatorwindow.OperatorNode |
addSuboperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newOperatorName)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
void |
checkChildrenAgainstDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
Overloaded operation |
void |
clearRuleEditor()
This is the default implementation of what a node should do when the associated rule editor is cleared - nothing |
abstract void |
copyStructures(java.io.File folderToWriteTo)
|
void |
delete(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
void |
export(java.io.File fileName)
Exports the operator and sub operators to a .vse file |
abstract void |
exportDataMap(java.io.Writer w)
|
abstract void |
exportDesc(java.io.Writer w)
|
abstract void |
exportFile(java.io.Writer w,
int id)
|
abstract void |
exportType(java.io.Writer w)
|
java.lang.String |
getFileName()
This is a getter method for the file name if the node supports this operation it returns the true path if it doesn't this returns null |
java.lang.String |
getFolderName()
This is a getter method for the folder name if the node supports this operation it returns the true path if it doesn't this returns null |
protected abstract java.lang.String |
getFullPathName()
|
int |
getId()
|
edu.umich.visualsoar.graph.SoarIdentifierVertex |
getStateIdVertex()
|
java.lang.String |
getUniqueName()
Returns a unique name based of the path of the node in the operator hierarchy. |
void |
importFunc(java.io.Reader r,
edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
|
boolean |
isDragOk(int action)
|
java.awt.datatransfer.DataFlavor |
isDropOk(int action,
java.awt.datatransfer.DataFlavor[] dataFlavor)
|
boolean |
move(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.operatorwindow.OperatorNode newParent)
|
void |
notifyDeletionOfChild(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.operatorwindow.OperatorNode child)
Tell the parent that a node has been deleted a node should do when a child is deleted - nothing |
void |
notifyRenameOfAncestor(java.lang.String oldFilePath,
java.lang.String newFilePath)
An ancestor has been renamed |
boolean |
okayToCreate(java.io.File newFile)
This method is called by subclasses when they want to add files or folders This performs a check for conflicts and prompts the user appropriately |
boolean |
okayToCreate(java.io.File newFile,
boolean creatingHLOp)
Similar to okayToCreate, but does necessary checks for a high level operator |
boolean |
okayToCreateReplace(java.io.File newFile)
This method is called when operator window is requested to add a file. |
void |
openDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
edu.umich.visualsoar.MainFrame pw)
Overloaded operation |
void |
openRules(edu.umich.visualsoar.MainFrame pw)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
void |
openRules(edu.umich.visualsoar.MainFrame pw,
int line)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
java.util.Vector |
parseProductions()
overloaded by subclasses |
(package private) static void |
recursiveDelete(java.io.File theFile)
Recoursively Deletes the operator and any children it may have |
void |
rename(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
java.lang.String newName)
If the node supports this operation it should be overloaded in the subclass if this function gets called it means that the node did not properly overload the function, so the user just told the program to do something that it cannot all this function does is print out an error message to that effect |
protected void |
renameToDeleted(java.io.File oldFile)
|
abstract void |
showContextMenu(java.awt.Component c,
int x,
int y)
This is an abstract method that must be implemented by every concrete subclass, this method enables and disables methods on the context menu depending on whether or not the node clicked upon supports that operation |
abstract void |
source(java.io.Writer w)
|
abstract void |
sourceChildren()
|
abstract void |
sourceRecursive()
|
java.lang.String |
toString()
just returns the name of the node |
Methods inherited from class edu.umich.visualsoar.operatorwindow.TreeNode |
write |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static javax.swing.JPopupMenu contextMenu
protected static javax.swing.JMenuItem addSuboperatorItem
protected static javax.swing.JMenuItem addFileItem
protected static javax.swing.JMenu impasseSubMenu
protected static javax.swing.JMenuItem tieImpasseItem
protected static javax.swing.JMenuItem conflictImpasseItem
protected static javax.swing.JMenuItem constraintImpasseItem
protected static javax.swing.JMenuItem stateNoChangeImpasseItem
protected static javax.swing.JMenuItem openRulesItem
protected static javax.swing.JMenuItem openDataMapItem
protected static javax.swing.JMenuItem deleteItem
protected static javax.swing.JMenuItem renameItem
protected static javax.swing.JMenuItem exportItem
protected static javax.swing.JMenuItem importItem
protected static javax.swing.JMenuItem checkChildrenAgainstDataMapItem
protected java.lang.String name
protected int id
Constructor Detail |
public OperatorNode(java.lang.String inName, int inId)
inName
- the name of the operatorinId
- the unique id associated with this operatorMethod Detail |
public java.lang.String getFileName()
public final int getId()
public java.util.Vector parseProductions() throws ParseException, java.io.IOException
ParseException
java.io.IOException
public boolean isDragOk(int action)
public java.awt.datatransfer.DataFlavor isDropOk(int action, java.awt.datatransfer.DataFlavor[] dataFlavor)
public java.lang.String getFolderName()
public java.lang.String getUniqueName()
public abstract void showContextMenu(java.awt.Component c, int x, int y)
c
- the component that owns the menux
- the horizontal position on the screen where the context menu should
be displayedy
- the vertical position on the screen where the context menu should
be displayedpublic java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
static void recursiveDelete(java.io.File theFile)
protected void renameToDeleted(java.io.File oldFile)
public boolean okayToCreate(java.io.File newFile)
public boolean okayToCreateReplace(java.io.File newFile) throws java.io.IOException
java.io.IOException
public boolean okayToCreate(java.io.File newFile, boolean creatingHLOp)
public edu.umich.visualsoar.operatorwindow.OperatorNode addSuboperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm, java.lang.String newOperatorName) throws java.io.IOException
newOperatorName
- the name of the new operator to add
java.io.IOException
public edu.umich.visualsoar.operatorwindow.OperatorNode addImpasseOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm, java.lang.String newOperatorName) throws java.io.IOException
newOperatorName
- the name of the new operator to add
java.io.IOException
public edu.umich.visualsoar.operatorwindow.OperatorNode addFileOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm, java.lang.String newFileName) throws java.io.IOException
java.io.IOException
public void addFile(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, java.lang.String newFileName) throws java.io.IOException
java.io.IOException
public void addLink(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
public void delete(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
public void notifyDeletionOfChild(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.OperatorNode child)
public void notifyRenameOfAncestor(java.lang.String oldFilePath, java.lang.String newFilePath)
oldFilePath
- the ancestor's old File pathnewFilePath
- the ancestor's new File pathpublic void openRules(edu.umich.visualsoar.MainFrame pw)
pw
- the MainFramepublic void openDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm, edu.umich.visualsoar.MainFrame pw)
public void checkChildrenAgainstDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
public void openRules(edu.umich.visualsoar.MainFrame pw, int line)
pw
- the Project windowline
- the line number to place the caret onpublic void clearRuleEditor()
public void rename(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, java.lang.String newName) throws java.io.IOException
newName
- the new name that the user wants this node to be called
java.io.IOException
public edu.umich.visualsoar.graph.SoarIdentifierVertex getStateIdVertex()
protected abstract java.lang.String getFullPathName()
public void export(java.io.File fileName) throws java.io.IOException
java.io.IOException
public boolean move(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.OperatorNode newParent)
public abstract void exportDesc(java.io.Writer w) throws java.io.IOException
java.io.IOException
public abstract void exportFile(java.io.Writer w, int id) throws java.io.IOException
java.io.IOException
public abstract void exportDataMap(java.io.Writer w) throws java.io.IOException
java.io.IOException
public abstract void exportType(java.io.Writer w) throws java.io.IOException
java.io.IOException
public void importFunc(java.io.Reader r, edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm) throws java.io.IOException, java.lang.NumberFormatException
java.io.IOException
java.lang.NumberFormatException
public abstract void copyStructures(java.io.File folderToWriteTo) throws java.io.IOException
java.io.IOException
public abstract void source(java.io.Writer w) throws java.io.IOException
java.io.IOException
public abstract void sourceChildren() throws java.io.IOException
java.io.IOException
public abstract void sourceRecursive() throws java.io.IOException
java.io.IOException
|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |