| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.core.LiOConfiguration
public class LiOConfiguration
This class encapsulates the default configuration of the library. That is datatypes, resources and relations between them. In fact this informations is stored in a file called lio.conf and can be easily modified to reflect new changes
| Constructor Summary | |
|---|---|
LiOConfiguration()
Creates a new instance of LiO by reading the configuration file and store all the information about available resources  | 
|
| Method Summary | |
|---|---|
 boolean | 
checkCompatibility(java.lang.String pResource)
Returns true if the class that implements this resource is available for the kind of data that uses the task.  | 
 boolean | 
checkCompatibility(java.lang.String pResource,
                   java.lang.String pKindOfData)
Tells whether the resource is available for a given kind of data.  | 
 java.lang.String | 
getDefaultRes(java.lang.String pKindOfData,
              java.lang.String pKindOfResource)
Returns the name of resource used as default with some kind of data and interface.  | 
 java.util.ArrayList<java.lang.String> | 
getListOfResources(java.lang.String pKindOfResource)
Extracts the list of resources that are data-type independent.  | 
 java.util.ArrayList<java.lang.String> | 
getListOfResources(java.lang.String pKindOfResource,
                   java.lang.String pKindOfData)
Extracts the list of resources for each kind of data and interface.  | 
 java.util.List<java.lang.String> | 
getProblemsList()
 | 
 java.util.List<java.lang.String> | 
getSearchAlgList()
 | 
static void | 
main(java.lang.String[] args)
Main class to test the class  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LiOConfiguration()
                 throws java.io.IOException
java.lang.Exception - if can't read configuration file or it's not well formed
java.io.IOException| Method Detail | 
|---|
public java.lang.String getDefaultRes(java.lang.String pKindOfData,
                                      java.lang.String pKindOfResource)
                               throws java.lang.Exception
pKindOfData - kind of data we are working with.pKindOfResource - kind of resource whose instantiation is demanded.
java.lang.Exception - if no resource is found for this kind of datatype
public boolean checkCompatibility(java.lang.String pResource,
                                  java.lang.String pKindOfData)
pResource - name of the resource whose compatibility is being checked.pKindOfData - kind of data we are working with.
public boolean checkCompatibility(java.lang.String pResource)
pResource - name of the resource whose compatibility is being checked.
public java.util.ArrayList<java.lang.String> getListOfResources(java.lang.String pKindOfResource,
                                                                java.lang.String pKindOfData)
pKindOfResource - kind of resource that is going to be listed.pKindOfData - kind of data we are working with.
public java.util.ArrayList<java.lang.String> getListOfResources(java.lang.String pKindOfResource)
pKindOfResource - kind of resource that is going to be listed.
public java.util.List<java.lang.String> getProblemsList()
public java.util.List<java.lang.String> getSearchAlgList()
public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||