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
ConstructorDescriptionConstructs a newSpecificationWriterAnonymized
that will always exportRoutings
. -
Method Summary
Modifier and TypeMethodDescriptionTransforms aSpecification
by anonymizing its ids.void
writeAnonymized
(S specification, File file) Write the specification to a file.void
writeAnonymized
(S specification, String filename) Write the specification to a file.
-
Constructor Details
-
SpecificationWriterAnonymized
public SpecificationWriterAnonymized()Constructs a newSpecificationWriterAnonymized
that 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 aSpecification
by anonymizing its ids.- Specified by:
transform
in interfaceorg.apache.commons.collections15.Transformer<S extends Specification,
S extends Specification>
-