class CasaAgentFileNode extends Object
Title: CASA
Description: Constructs a Tree that is to be included in the LACTreePanel under the "agent instances
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
protected File |
casaFile |
protected boolean |
isActive |
Constructor and Description |
---|
CasaAgentFileNode(File casaFile,
boolean isActive)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CasaAgentFileNode toCompare) |
boolean |
expand(DefaultMutableTreeNode parent,
DefaultTreeModel model,
boolean showInactive) |
private DefaultMutableTreeNode |
find(DefaultMutableTreeNode parent,
Vector path,
int level) |
private Vector |
getAllChildren(DefaultMutableTreeNode parent,
boolean showInactive) |
File |
getFile() |
private void |
insert(DefaultMutableTreeNode newNode,
Vector v) |
private boolean |
isCasaFile(File f) |
File[] |
listFiles() |
String |
toString() |
private DefaultMutableTreeNode |
verify_body(DefaultMutableTreeNode parent,
DefaultTreeModel model,
JTree tree,
boolean showInactive,
Vector expanded) |
DefaultMutableTreeNode |
verify(DefaultMutableTreeNode parent,
DefaultTreeModel model,
JTree tree,
boolean showInactive) |
protected File casaFile
protected boolean isActive
public CasaAgentFileNode(File casaFile, boolean isActive)
casaFile
- is the starting path for retrieving all the agentsisActive
- true if the agent is active (registered instance), false otherwisepublic File getFile()
public boolean expand(DefaultMutableTreeNode parent, DefaultTreeModel model, boolean showInactive)
public DefaultMutableTreeNode verify(DefaultMutableTreeNode parent, DefaultTreeModel model, JTree tree, boolean showInactive)
private DefaultMutableTreeNode verify_body(DefaultMutableTreeNode parent, DefaultTreeModel model, JTree tree, boolean showInactive, Vector expanded)
private DefaultMutableTreeNode find(DefaultMutableTreeNode parent, Vector path, int level)
private Vector getAllChildren(DefaultMutableTreeNode parent, boolean showInactive)
private boolean isCasaFile(File f)
private void insert(DefaultMutableTreeNode newNode, Vector v)
public int compareTo(CasaAgentFileNode toCompare)
public File[] listFiles()