| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.springrts.ai.oo.Roots
public class Roots
| Method Summary | |
|---|---|
 String | 
allocatePath(String relPath,
             boolean writeable,
             boolean create,
             boolean dir)
 | 
 int | 
compareTo(Roots other)
 | 
 boolean | 
equals(Object otherObject)
 | 
 boolean | 
getDir(String path,
       int path_sizeMax,
       int dirIndex)
Returns the data dir at dirIndex, which is valid between 0 and (DataDirs_Roots_getSize() - 1).  | 
 int | 
getSize()
Returns the number of springs data dirs.  | 
 int | 
hashCode()
 | 
 boolean | 
locatePath(String path,
           int path_sizeMax,
           String relPath,
           boolean writeable,
           boolean create,
           boolean dir)
Returns an absolute path which consists of: data-dir + relative-path.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Method Detail | 
|---|
public int compareTo(Roots other)
compareTo in interface Comparable<Roots>public boolean equals(Object otherObject)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int getSize()
public boolean getDir(String path,
                      int path_sizeMax,
                      int dirIndex)
public boolean locatePath(String path,
                          int path_sizeMax,
                          String relPath,
                          boolean writeable,
                          boolean create,
                          boolean dir)
path - store for the resulting absolute pathpath_sizeMax - storage size of the aboverelPath - the relative path to findwriteable - if true, only the writeable data-dir is consideredcreate - if true, and realPath is not found, its dir structure
                     is created recursively under the writeable data-dirdir - if true, realPath specifies a dir, which means if
                     create is true, the whole path will be created,
                     including the last part
DataDirs_locatePath
public String allocatePath(String relPath,
                           boolean writeable,
                           boolean create,
                           boolean dir)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||