Class AgentFiles

java.lang.Object
  |
  +--FileCollection
        |
        +--AgentFiles
All Implemented Interfaces:
Cloneable

public class AgentFiles
extends FileCollection

This class allows the programmer to access the list of A-Prolog files that constitute the reasoning modules.

The only fields of interest to the programmer are the constants describing the various components of the collection of files (PLANNING, DIAGNOSTIC, HIDES).

The only method of interest to the programmer is getFiles, inherited from FilesCollection, which allows the retrieval of a set of files from the collection.


Field Summary
static int AGENT_CLASS
          Used by the APLAgent Manager
static int DIAGNOSTIC
          This constant denotes the files of the diagnostic module.
static int HIDES
          This constant denotes the files that contain #hide statements (atoms that should be hidden in the output of the inference engine).
static int PLANNING
          This constant denotes the files of the planning module.
 
Constructor Summary
AgentFiles()
          Used by the APLAgent Manager
 
Method Summary
 boolean getAcceptAllFilterUsed(int m)
          Used by the APLAgent Manager
 String getCollectionName()
          Used by the APLAgent Manager
 FileFilter[] getFileFilters(int m)
          Used by the APLAgent Manager
 boolean getSingleFileAllowed(int m)
          Used by the APLAgent Manager
 
Methods inherited from class FileCollection
add, clear, clone, getFiles, getFirstFile, getModuleName, getModuleNumber, getNModules, load, remove, save
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_CLASS

public static final int AGENT_CLASS
Used by the APLAgent Manager

PLANNING

public static final int PLANNING
This constant denotes the files of the planning module.

DIAGNOSTIC

public static final int DIAGNOSTIC
This constant denotes the files of the diagnostic module.

HIDES

public static final int HIDES
This constant denotes the files that contain #hide statements (atoms that should be hidden in the output of the inference engine).
Constructor Detail

AgentFiles

public AgentFiles()
Used by the APLAgent Manager
Method Detail

getCollectionName

public String getCollectionName()
Used by the APLAgent Manager
Overrides:
getCollectionName in class FileCollection

getFileFilters

public FileFilter[] getFileFilters(int m)
Used by the APLAgent Manager
Overrides:
getFileFilters in class FileCollection

getAcceptAllFilterUsed

public boolean getAcceptAllFilterUsed(int m)
Used by the APLAgent Manager
Overrides:
getAcceptAllFilterUsed in class FileCollection

getSingleFileAllowed

public boolean getSingleFileAllowed(int m)
Used by the APLAgent Manager
Overrides:
getSingleFileAllowed in class FileCollection