Skip to content

Releases: VRP-REP/model

vrprep-model-0.2.1

20 Oct 22:10
Compare
Choose a tag to compare

This release corrects a bug in requests definition and removes report and solutions xsd.
Now, only instances are modeled.

vrprep-model-0.1.4

10 Oct 12:41
Compare
Choose a tag to compare

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

06 Oct 08:28
Compare
Choose a tag to compare

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

06 Oct 08:31
Compare
Choose a tag to compare

The first development release of the model classes.