edu.jhu.tmaj.client.importer.data
Enum ScanningMachine

java.lang.Object
  extended by java.lang.Enum<ScanningMachine>
      extended by edu.jhu.tmaj.client.importer.data.ScanningMachine
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScanningMachine>

public enum ScanningMachine
extends java.lang.Enum<ScanningMachine>

The Machines that can scan an ArraySlide, namely the BLISS, ACIS, NIKON, and ARIOL. The machine each name their image files in a different format, meaning one will have x/y coordinates like "y_15_x_2_image.jpg and another like "image_zd3d_x15_y2_dfdf.jpg".


Enum Constant Summary
ACIS
          THE ACIS scanning machine from Chromavision (Clarient) corporation.
APERIO
          The Aperio ScanScope System.
ARIOL
          The ARIOL scanning machine, from Applied Imaging corporation.
BLISS
          The BLISS scanning machine from BACUS labs.
NIKON
          The Nikon.
STANDARD
          A machine that outputs in our standard format, but that we do not know the name of.
 
Method Summary
 ImageOutputParser getImageOutputParser()
          Gets the custom ImageOutputParser for the scanning machine.
static ScanningMachine getMachine(java.lang.String machineName)
           
 java.lang.String getName()
          Gets the model name of the scanning machine.
 int getNumber()
          Gets the number of the scanning machine used in the database.
static ScanningMachine getScanningMachine(int machineID)
           
static ScanningMachine valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScanningMachine[] 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

BLISS

public static final ScanningMachine BLISS
The BLISS scanning machine from BACUS labs.


ACIS

public static final ScanningMachine ACIS
THE ACIS scanning machine from Chromavision (Clarient) corporation.


NIKON

public static final ScanningMachine NIKON
The Nikon. Not currently used in TMAJ.


ARIOL

public static final ScanningMachine ARIOL
The ARIOL scanning machine, from Applied Imaging corporation. This uses a StandardImageOutputParser after the ARIOL preimport program has given it x and y coordinates on the filenames.


STANDARD

public static final ScanningMachine STANDARD
A machine that outputs in our standard format, but that we do not know the name of.


APERIO

public static final ScanningMachine APERIO
The Aperio ScanScope System.

Method Detail

values

public static ScanningMachine[] 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 (ScanningMachine c : ScanningMachine.values())
    System.out.println(c);

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

valueOf

public static ScanningMachine valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMachine

public static ScanningMachine getMachine(java.lang.String machineName)

getName

public java.lang.String getName()
Gets the model name of the scanning machine.


getNumber

public int getNumber()
Gets the number of the scanning machine used in the database.


getImageOutputParser

public ImageOutputParser getImageOutputParser()
Gets the custom ImageOutputParser for the scanning machine.


getScanningMachine

public static ScanningMachine getScanningMachine(int machineID)