Releases: VRP-REP/model
Releases · VRP-REP/model
vrprep-model-0.2.1
This release corrects a bug in requests definition and removes report and solutions xsd.
Now, only instances are modeled.
vrprep-model-0.1.4
For convenience, the project now includes a basic instance reader and writer, that you may use this way :
import java.io.File;
import org.vrprep.model.instance.Instance;
import org.vrprep.model.util.Instances;
...
Instance instance = Instances.read(inputPath);
File file = Instances.write(instance, outputPath);
vrprep-model-0.1.3
Jar files now contains an xsd folder with every xsd file of the repository.
This is useful to validate your files against the schema.
You can get the schema as showed in the following code snippet :
import java.io.InputStream;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import org.vrprep.model.instance.Instance;
...
InputStream stream = Instance.class.getResourceAsStream("/xsd/instance.xsd");
Source schemaSource = new StreamSource(stream);
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = sf.newSchema(schemaSource);
vrprep-model-0.1.0
The first development release of the model classes.