edu.stanford.hci.r3.util.communications
Enum COMPort

java.lang.Object
  extended by java.lang.Enum<COMPort>
      extended by edu.stanford.hci.r3.util.communications.COMPort
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<COMPort>

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

When translated to a string, JavaCOMM can map this to a physical COM port.

This software is distributed under the BSD License.


Enum Constant Summary
COM1
           
COM2
           
COM3
           
COM4
           
COM5
           
COM6
           
COM7
           
COM8
           
COM9
           
 
Field Summary
static java.lang.Object[] PORTS
           
 
Method Summary
static COMPort valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static COMPort[] 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

COM1

public static final COMPort COM1

COM2

public static final COMPort COM2

COM3

public static final COMPort COM3

COM4

public static final COMPort COM4

COM5

public static final COMPort COM5

COM6

public static final COMPort COM6

COM7

public static final COMPort COM7

COM8

public static final COMPort COM8

COM9

public static final COMPort COM9
Field Detail

PORTS

public static final java.lang.Object[] PORTS
Method Detail

values

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

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

valueOf

public static COMPort 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

Copyright 2006 Stanford University