|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 | |
---|---|
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 |
save()
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 save()
public void load()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |