public class ABMPersister
extends com.moseph.modelutils.serialisation.EasyPersister
Raster.getNDATA() without a
previous call to Raster.setNDATA(String) may cause a segmentation fault since the object
it returns has not been initialised.| Modifier and Type | Field and Description |
|---|---|
static String |
REGION_CONTEXT_KEY |
| Modifier and Type | Method and Description |
|---|---|
Map<String,com.moseph.modelutils.curve.LinearInterpolator> |
csvVerticalToCurves(String csvFile,
String xCol,
Collection<String> columns,
Map<String,String> extra) |
static ABMPersister |
getInstance() |
void |
regionsToRaster(String filename,
Regions r,
CellToDouble converter,
boolean writeInts,
DecimalFormat format,
String nDataString) |
void |
regionsToRaster(String filename,
Regions r,
CellToDouble converter,
boolean writeInts,
String nDataString) |
void |
setBaseDir(String baseDir) |
void |
setContext(String key,
String value)
Does not accept the regional context key (usually 'r').
|
void |
setRunInfo(RunInfo info) |
contextualise, contextualise, csvFileOK, csvFileOK, csvFileOK, csvFileOK, csvHorizontalToCurve, csvToDoubleMap, csvToDoubleTable, csvToDoubleTable, csvToIntegerMultiString, csvToMatrix, csvToNumericMap, csvToStringMap, csvVerticalToCurves, ensureDirectoryExists, getBaseDir, getCSVReader, getCSVReader, getFullPath, getFullPath, getTempFilename, getTempFilename, getTempVersion, getTmpDir, read, read, readRaster, readXML, roundTripSerialise, roundTripSerialise, setTmpDir, splitTags, writeXMLread, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, validate, validate, validate, validate, validate, validate, validate, validate, validate, validate, write, write, write, write, writepublic static final String REGION_CONTEXT_KEY
public static ABMPersister getInstance()
public void regionsToRaster(String filename, Regions r, CellToDouble converter, boolean writeInts, String nDataString) throws Exception
Exceptionpublic void regionsToRaster(String filename, Regions r, CellToDouble converter, boolean writeInts, DecimalFormat format, String nDataString) throws Exception
Exceptionpublic void setRunInfo(RunInfo info)
public Map<String,com.moseph.modelutils.curve.LinearInterpolator> csvVerticalToCurves(String csvFile, String xCol, Collection<String> columns, Map<String,String> extra) throws IOException
csvVerticalToCurves in class com.moseph.modelutils.serialisation.EasyPersisterIOExceptionpublic void setContext(String key, String value)
setContext in class com.moseph.modelutils.serialisation.EasyPersisterEasyPersister.setContext(java.lang.String,
java.lang.String)public void setBaseDir(String baseDir)
setBaseDir in class com.moseph.modelutils.serialisation.EasyPersister