uk.co.agena.minerva.util.model
Interface Writable

All Known Implementing Classes:
AbsoluteDataPoint, BooleanEN, ContinuousEN, ContinuousIntervalEN, DataPoint, DataSet, DiscreteRealEN, ExtendedBN, ExtendedBNList, ExtendedNode, ExtendedNodeFunction, ExtendedState, IntegerIntervalEN, IntervalDataPoint, LabelledEN, MarginalDataItem, MarginalDataItemList, MarginalDataStore, MessagePassingLinks, Model, ModificationLog, Note, Notes, NumericalEN, Observation, RankedEN, Scenario, ScenarioList, StringDataPoint, Variable, VariableList

public interface Writable

This interface allows Objects to write themselves out to Strings (and allows Objects to be created from such Strings).


Field Summary
static java.lang.String FIELD_SEPARATOR
          Used for separating fields when objects are written out to Strings.
 
Method Summary
 double getVersion()
          Returns the version of the class.
 int read(java.util.List strings, int currentLineNumber)
           
 void setVersion(double version)
          Sets the version number of the class.
 java.util.List write()
          Writes the object in question to a List of Strings.
 

Field Detail

FIELD_SEPARATOR

static final java.lang.String FIELD_SEPARATOR
Used for separating fields when objects are written out to Strings.

See Also:
Constant Field Values
Method Detail

write

java.util.List write()
                     throws MinervaReadWriteException
Writes the object in question to a List of Strings.

Returns:
the List to which the Strings have been written
Throws:
MinervaReadWriteException - if there

read

int read(java.util.List strings,
         int currentLineNumber)
         throws MinervaReadWriteException
Throws:
MinervaReadWriteException

getVersion

double getVersion()
Returns the version of the class. Used to ensure backward compatibility.

Returns:
the version number

setVersion

void setVersion(double version)
Sets the version number of the class. Used to ensure backward compatibility.

Parameters:
version - the version number


Copyright © 2006 Agena Ltd. All Rights Reserved.