jInfer

cz.cuni.mff.ksi.jinfer.iss.experiments.data
Enum SizeTestData

java.lang.Object
  extended by java.lang.Enum<SizeTestData>
      extended by cz.cuni.mff.ksi.jinfer.iss.experiments.data.SizeTestData
All Implemented Interfaces:
TestData, Serializable, Comparable<SizeTestData>

public enum SizeTestData
extends Enum<SizeTestData>
implements TestData

A set of artificial data, random graphs. They should have approximately the same density (~1/10 of all possible edges).


Enum Constant Summary
GRAPH_0_0
           
GRAPH_10_5
           
GRAPH_100_500
           
GRAPH_20_20
           
GRAPH_30_45
           
GRAPH_40_80
           
GRAPH_50_125
           
GRAPH_60_180
           
GRAPH_70_245
           
GRAPH_80_320
           
GRAPH_90_405
           
 
Method Summary
 int getEdges()
          Returns the number of edges in the graph representation of this file.
 InputFile getFile()
          Returns the input file represented.
 Double getKnownOptimum()
          Returns the known optimum for alpha = beta = 1, if available.
 int getVertices()
          Returns the number of vertices in the graph representation of this file.
static SizeTestData valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SizeTestData[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRAPH_0_0

public static final SizeTestData GRAPH_0_0

GRAPH_10_5

public static final SizeTestData GRAPH_10_5

GRAPH_20_20

public static final SizeTestData GRAPH_20_20

GRAPH_30_45

public static final SizeTestData GRAPH_30_45

GRAPH_40_80

public static final SizeTestData GRAPH_40_80

GRAPH_50_125

public static final SizeTestData GRAPH_50_125

GRAPH_60_180

public static final SizeTestData GRAPH_60_180

GRAPH_70_245

public static final SizeTestData GRAPH_70_245

GRAPH_80_320

public static final SizeTestData GRAPH_80_320

GRAPH_90_405

public static final SizeTestData GRAPH_90_405

GRAPH_100_500

public static final SizeTestData GRAPH_100_500
Method Detail

values

public static SizeTestData[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SizeTestData c : SizeTestData.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SizeTestData valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFile

public InputFile getFile()
Description copied from interface: TestData
Returns the input file represented.

Specified by:
getFile in interface TestData
Returns:
Test data file.

getVertices

public int getVertices()
Description copied from interface: TestData
Returns the number of vertices in the graph representation of this file.

Specified by:
getVertices in interface TestData

getEdges

public int getEdges()
Description copied from interface: TestData
Returns the number of edges in the graph representation of this file.

Specified by:
getEdges in interface TestData

getKnownOptimum

public Double getKnownOptimum()
Description copied from interface: TestData
Returns the known optimum for alpha = beta = 1, if available.

Specified by:
getKnownOptimum in interface TestData
Returns:
Known optimum for this file or null if unknown.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011