org.jnetstream.protocol
Enum Characteristic.Physical

java.lang.Object
  extended by java.lang.Enum<Characteristic.Physical>
      extended by org.jnetstream.protocol.Characteristic.Physical
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Characteristic.Physical>, Characteristic
Enclosing interface:
Characteristic

public static enum Characteristic.Physical
extends java.lang.Enum<Characteristic.Physical>
implements Characteristic

Describes the physical characteristics of the network. Encoded into bits 30-27 of a 32-bit unsigned integer.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jnetstream.protocol.Characteristic
Characteristic.BitCodec, Characteristic.Frame, Characteristic.Kind, Characteristic.Physical
 
Enum Constant Summary
Cdma
          Ethernet
None
          Higher-level protocols that have no physical medium
Rf
          Radio based physical networks
Ring
          Ring topology, Sonet, FDDI, Token-Ring
Serial
          Slip, Wan Links
 
Method Summary
 int getValue()
           
static java.util.Set<? extends Characteristic> valueOf(int value)
          Returns an efficient EnumSet of all the physical characteristics that are encoded into the integer value.
static Characteristic.Physical valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Characteristic.Physical[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Cdma

public static final Characteristic.Physical Cdma
Ethernet


None

public static final Characteristic.Physical None
Higher-level protocols that have no physical medium


Rf

public static final Characteristic.Physical Rf
Radio based physical networks


Ring

public static final Characteristic.Physical Ring
Ring topology, Sonet, FDDI, Token-Ring


Serial

public static final Characteristic.Physical Serial
Slip, Wan Links

Method Detail

values

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

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

valueOf

public static Characteristic.Physical 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

getValue

public final int getValue()
Specified by:
getValue in interface Characteristic
Returns:
the value

valueOf

public static java.util.Set<? extends Characteristic> valueOf(int value)
Returns an efficient EnumSet of all the physical characteristics that are encoded into the integer value.

Parameters:
value - integer value with bit encoded physical properties
Returns:
a set containing the decoded constants