|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.coursett.IdConvertor
public class IdConvertor
Conversion of ids to sequential numbers. This class is used by
TimetableXMLSaver
to anonymise benchmark data sets. Conversion file
can be provided by IdConvertor.File system property (e.g.
-DIdConvertor.File=.\idconf.xml).
Constructor Summary | |
---|---|
protected |
IdConvertor(String file)
Constructor -- use getInstance() to get an instance of
this class. |
Method Summary | |
---|---|
void |
clear()
Clear id conversion table. |
String |
convert(String type,
String id)
Convert id of given type. |
static IdConvertor |
getInstance()
Get an instance of IdConvertor class. |
void |
load()
Load id conversion file. |
void |
load(File file)
Load id conversion file. |
void |
save()
Save id conversion file. |
void |
save(File file)
Save id conversion file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected IdConvertor(String file)
getInstance()
to get an instance of
this class.
Method Detail |
---|
public static IdConvertor getInstance()
public String convert(String type, String id)
public void clear()
public void save(File file)
file
- id file to savepublic void save()
public void load(File file)
file
- id file to loadpublic void load()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |