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.
  • Constructor Details

  • Method Details

    • writeAnonymized

      public void writeAnonymized(S specification, String filename)
      Write the specification to a file.
      Parameters:
      specification - the specification
      filename - the name of the target file
    • writeAnonymized

      public void writeAnonymized(S specification, File file)
      Write the specification to a file.
      Parameters:
      specification - the specification
      file - the target file
    • transform

      public S transform(S specification)
      Transforms a Specification by anonymizing its ids.
      Specified by:
      transform in interface org.apache.commons.collections15.Transformer<S extends Specification,S extends Specification>