|
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 | +--edu.umich.visualsoar.operatorwindow.FileNode | +--edu.umich.visualsoar.operatorwindow.SoarOperatorNode | +--edu.umich.visualsoar.operatorwindow.FileOperatorNode
FileOperatorNode class is for File Operators. Similar to SoarOperatorNode in every way other than writing to disk and does not have a datamap associated with itself, instead, it uses the datamap of its' Operator parent Supports sub-filing.
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
protected edu.umich.visualsoar.graph.SoarIdentifierVertex |
dataMapId
|
protected int |
dataMapIdNumber
|
protected java.lang.String |
folderName
|
protected boolean |
isHighLevel
|
Fields inherited from class edu.umich.visualsoar.operatorwindow.FileNode |
fileAssociation, fullTransferFileName, ruleEditor, transferTreePath |
Fields inherited from class edu.umich.visualsoar.operatorwindow.OperatorNode |
addFileItem, addSuboperatorItem, checkChildrenAgainstDataMapItem, conflictImpasseItem, constraintImpasseItem, contextMenu, deleteItem, exportItem, id, impasseSubMenu, importItem, name, openDataMapItem, openRulesItem, renameItem, stateNoChangeImpasseItem, tieImpasseItem |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
FileOperatorNode(java.lang.String inName,
int inId,
java.lang.String inFileName)
this creates a low-level operator with the given name and file |
|
FileOperatorNode(java.lang.String inName,
int inId,
java.lang.String inFileName,
java.lang.String inFolderName,
int inDataMapIdNumber)
This will construct a high-level operator node, this one supports serialization, restoreId must be called to get this object into a good state |
|
FileOperatorNode(java.lang.String inName,
int inId,
java.lang.String inFileName,
java.lang.String inFolderName,
edu.umich.visualsoar.graph.SoarIdentifierVertex inDataMapId)
this creates a highlevel operator with the given name, file, folder and dataMapId |
Method Summary | |
edu.umich.visualsoar.operatorwindow.OperatorNode |
addFileOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newFileName)
This is the function that gets called when you want to add a sub file operator to this node |
edu.umich.visualsoar.operatorwindow.OperatorNode |
addImpasseOperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newOperatorName)
This is the function that gets called when you want to add a sub Impasse Operator to this node |
void |
addLink(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.operatorwindow.LinkNode linkNode)
|
edu.umich.visualsoar.operatorwindow.OperatorNode |
addSuboperator(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
java.lang.String newOperatorName)
This is the function that gets called when you want to add a suboperator to this node |
void |
copyStructures(java.io.File folderToWriteTo)
|
void |
delete(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
Removes the selected operator from the tree if it is allowed |
void |
exportDataMap(java.io.Writer w)
|
void |
exportDesc(java.io.Writer w)
Given a Writer this writes out a description of the soar operator node that can be read back in later |
void |
exportType(java.io.Writer w)
|
void |
firstTimeAdd(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
|
java.lang.String |
getFileName()
Use this getter function to get the path to the rule file |
java.lang.String |
getFolderName()
Use this getter function to get the path to the folder |
protected java.lang.String |
getFullPathName()
|
edu.umich.visualsoar.graph.SoarIdentifierVertex |
getState()
|
edu.umich.visualsoar.graph.SoarIdentifierVertex |
getStateIdVertex()
|
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[] dataFlavors)
|
boolean |
isHighLevel()
|
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)
A child has been deleted from this node, so check if this node has become a low-level operator now |
(package private) void |
notifyLinksOfUpdate(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
|
void |
openDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm,
edu.umich.visualsoar.MainFrame pw)
This opens/shows a dataMap with this nodes associated Data Map File |
void |
registerLink(edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
|
void |
removeLink(edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
|
void |
rename(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow,
java.lang.String newName)
The user wants to rename this node |
protected void |
renameFolder(java.lang.String newFolderName)
This is a helper function that renames the folder for which this node is associated to it's new folder name, and also notifies the children of this node that there has been a change |
void |
restoreId(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
|
void |
showContextMenu(java.awt.Component c,
int x,
int y)
This adjusts the context menu so that only the valid commands are displayed |
void |
source(java.io.Writer w)
|
void |
sourceChildren()
|
void |
sourceRecursive()
|
void |
write(java.io.Writer w)
Given a Writer this writes out a description of the operator node that can be read back in later |
Methods inherited from class edu.umich.visualsoar.operatorwindow.FileNode |
addFile, clearRuleEditor, exportFile, getTransferTreePath, moveAssociations, needsToSourceChildren, notifyChildrenOfRename, openRules, openRules, parseProductions, renameFile, setRuleEditor, setTransferFullPath |
Methods inherited from class edu.umich.visualsoar.operatorwindow.OperatorNode |
checkChildrenAgainstDataMap, export, getId, getUniqueName, notifyRenameOfAncestor, okayToCreate, okayToCreate, okayToCreateReplace, recursiveDelete, renameToDeleted, toString |
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 boolean isHighLevel
protected java.lang.String folderName
protected edu.umich.visualsoar.graph.SoarIdentifierVertex dataMapId
protected int dataMapIdNumber
Constructor Detail |
public FileOperatorNode(java.lang.String inName, int inId, java.lang.String inFileName)
public FileOperatorNode(java.lang.String inName, int inId, java.lang.String inFileName, java.lang.String inFolderName, edu.umich.visualsoar.graph.SoarIdentifierVertex inDataMapId)
public FileOperatorNode(java.lang.String inName, int inId, java.lang.String inFileName, java.lang.String inFolderName, int inDataMapIdNumber)
Method Detail |
public void showContextMenu(java.awt.Component c, int x, int y)
showContextMenu
in class SoarOperatorNode
c
- the owner of the context menu, should be the OperatorWindowx
- 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 void exportDesc(java.io.Writer w) throws java.io.IOException
exportDesc
in class SoarOperatorNode
w
- the writer
java.io.IOException
- if there is an error writing to the writerpublic void write(java.io.Writer w) throws java.io.IOException
FileNode
write
in class FileNode
w
- the writer
java.io.IOException
- if there is an error writing to the writerpublic void firstTimeAdd(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm) 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
importFunc
in class OperatorNode
java.io.IOException
java.lang.NumberFormatException
public boolean isDragOk(int action)
isDragOk
in class OperatorNode
public java.awt.datatransfer.DataFlavor isDropOk(int action, java.awt.datatransfer.DataFlavor[] dataFlavors)
isDropOk
in class OperatorNode
public void exportType(java.io.Writer w) throws java.io.IOException
exportType
in class FileNode
java.io.IOException
public java.lang.String getFolderName()
getFolderName
in class OperatorNode
public java.lang.String getFileName()
getFileName
in class FileNode
protected java.lang.String getFullPathName()
getFullPathName
in class FileNode
public edu.umich.visualsoar.graph.SoarIdentifierVertex getStateIdVertex()
getStateIdVertex
in class OperatorNode
protected void renameFolder(java.lang.String newFolderName)
newFolderName
- a String that represents the new folder pathpublic void restoreId(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm)
public void rename(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, java.lang.String newName) throws java.io.IOException
rename
in class FileNode
newName
- the new name that the user wants this node to be called
java.io.IOException
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
addSuboperator
in class OperatorNode
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
addImpasseOperator
in class OperatorNode
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
addFileOperator
in class OperatorNode
newFileName
- the name of the new operator to add
java.io.IOException
public void addLink(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.LinkNode linkNode)
addLink
in class OperatorNode
public void delete(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
delete
in class FileNode
public void notifyDeletionOfChild(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.OperatorNode child)
notifyDeletionOfChild
in class OperatorNode
public void openDataMap(edu.umich.visualsoar.datamap.SoarWorkingMemoryModel swmm, edu.umich.visualsoar.MainFrame pw)
openDataMap
in class OperatorNode
pw
- the MainFramepublic edu.umich.visualsoar.graph.SoarIdentifierVertex getState()
public void exportDataMap(java.io.Writer w) throws java.io.IOException
exportDataMap
in class FileNode
java.io.IOException
public boolean isHighLevel()
public void registerLink(edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
public void removeLink(edu.umich.visualsoar.operatorwindow.LinkNode inLinkNode)
void notifyLinksOfUpdate(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow)
public void copyStructures(java.io.File folderToWriteTo) throws java.io.IOException
copyStructures
in class FileNode
java.io.IOException
public boolean move(edu.umich.visualsoar.operatorwindow.OperatorWindow operatorWindow, edu.umich.visualsoar.operatorwindow.OperatorNode newParent)
move
in class OperatorNode
public void source(java.io.Writer w) throws java.io.IOException
source
in class FileNode
java.io.IOException
public void sourceChildren() throws java.io.IOException
sourceChildren
in class FileNode
java.io.IOException
public void sourceRecursive() throws java.io.IOException
sourceRecursive
in class FileNode
java.io.IOException
|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |