| |
|
| java.lang.Object org.cougaar.tools.csmart.ui.viewer.SocietyFinder
SocietyFinder | final public class SocietyFinder (Code) | | Most of this was taken from ConfigFinder. ConfigFinder is used
to find the society file that the user chooses, so we want to open
a file chooser on the first path that ConfigFinder will use.
See Also: org.cougaar.util.ConfigFinder |
Constructor Summary | |
public | SocietyFinder(String s, Map p) Use SocietyFinder.getInstance instead of constructor. |
SocietyFinder | public SocietyFinder(String s, Map p)(Code) | | Use SocietyFinder.getInstance instead of constructor.
Parameters: s - configuration path Parameters: p - properties |
getAgentFilenames | public String[] getAgentFilenames(File directory)(Code) | | Return names of all agent files in the specified directory.
Currently searches all files whose names end with ".ini" for
the pattern: [ Cluster ]
Parameters: directory - to search string array of agent filenames |
getInstance | public static SocietyFinder getInstance()(Code) | | Return an instance of SocietyFinder .
|
getPath | public String getPath()(Code) | | Get the first path that ConfigFinder will search.
the path |
locateFile | public File locateFile(String aFilename)(Code) | | Locate an actual file in the config path. This will skip over
elements of org.cougaar.config.path that are not file: urls.
|
open | public InputStream open(String aURL) throws IOException(Code) | | Opens an InputStream to access the named file. The file is sought
in all the places specified in configPath.
throws: IOException - if the resource cannot be found. |
|
|
|