eu.planets_project.services.datatypes
Class MigrationPath

java.lang.Object
  extended by eu.planets_project.services.datatypes.MigrationPath

public final class MigrationPath
extends java.lang.Object

Simple class to build path matrices from. Contains the input and outputs of the path, and allows for parameters for that mapping.


Constructor Summary
MigrationPath(java.net.URI in, java.net.URI out, java.util.List<Parameter> pars)
          Parameterised constructor.
 
Method Summary
static java.util.List<MigrationPath> constructPaths(java.util.Set<java.net.URI> inputFormats, java.util.Set<java.net.URI> outputFormats)
          Construct an array of migration paths, linking all the formats in input formats to all the formats in output formats.
static java.util.List<MigrationPath> constructPathsWithParams(java.util.Set<java.net.URI> inputformats, java.util.Set<java.net.URI> outputFormats, java.util.List<Parameter> params)
          Construct an array of migrationpaths, linking all the formats in inputformas to all the formats in outputformats.
 boolean equals(java.lang.Object obj)
           
 java.net.URI getInputFormat()
           
 java.net.URI getOutputFormat()
           
 java.util.List<Parameter> getParameters()
           
 int hashCode()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MigrationPath

public MigrationPath(java.net.URI in,
                     java.net.URI out,
                     java.util.List<Parameter> pars)
Parameterised constructor.

Parameters:
in - The input format
out - The output format
pars - The parameters
Method Detail

getInputFormat

public java.net.URI getInputFormat()
Returns:
the inputFormat

getOutputFormat

public java.net.URI getOutputFormat()
Returns:
the outputFormat

getParameters

public java.util.List<Parameter> getParameters()
Returns:
A copy of the parameters

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

constructPaths

public static java.util.List<MigrationPath> constructPaths(java.util.Set<java.net.URI> inputFormats,
                                                           java.util.Set<java.net.URI> outputFormats)
Construct an array of migration paths, linking all the formats in input formats to all the formats in output formats. If either is null or empty, the array will be length 0. All migrationPaths will be with null parameters.

Parameters:
inputFormats - The allowed input formats
outputFormats - The allowed output formats
Returns:
An array of all the paths.

constructPathsWithParams

public static java.util.List<MigrationPath> constructPathsWithParams(java.util.Set<java.net.URI> inputformats,
                                                                     java.util.Set<java.net.URI> outputFormats,
                                                                     java.util.List<Parameter> params)
Construct an array of migrationpaths, linking all the formats in inputformas to all the formats in outputformats. If either is null or empty, the array will be length 0. All migrationPaths will be with null parameters.

Parameters:
inputformats - The allowed inputformats
outputFormats - The allowed outputformats
params - the parameters for this migration path.
Returns:
An array of all the paths.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.