Package net.sf.opendse.io
Class SpecificationWriterAnonymized<S extends Specification>
java.lang.Object
net.sf.opendse.io.SpecificationWriter
net.sf.opendse.io.SpecificationWriterAnonymized<S>
- All Implemented Interfaces:
org.apache.commons.collections15.Transformer<S,S>
public class SpecificationWriterAnonymized<S extends Specification>
extends SpecificationWriter
implements org.apache.commons.collections15.Transformer<S,S>
The
SpecificationWriterAnonymized writes an anonymized
Specification to a File. The anonymization covers the IDs of
Task, Dependency, Resource, Link and
Mapping. Note that anonymization keeps all other Attributes
as given in the Specification.-
Field Summary
Fields inherited from class net.sf.opendse.io.SpecificationWriter
NS -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSpecificationWriterAnonymizedthat will always exportRoutings. -
Method Summary
Modifier and TypeMethodDescriptionTransforms aSpecificationby anonymizing its ids.voidwriteAnonymized(S specification, File file) Write the specification to a file.voidwriteAnonymized(S specification, String filename) Write the specification to a file.
-
Constructor Details
-
SpecificationWriterAnonymized
public SpecificationWriterAnonymized()Constructs a newSpecificationWriterAnonymizedthat will always exportRoutings.
-
-
Method Details
-
writeAnonymized
Write the specification to a file.- Parameters:
specification- the specificationfilename- the name of the target file
-
writeAnonymized
Write the specification to a file.- Parameters:
specification- the specificationfile- the target file
-
transform
Transforms aSpecificationby anonymizing its ids.- Specified by:
transformin interfaceorg.apache.commons.collections15.Transformer<S extends Specification,S extends Specification>
-