com.eurotech.framework.net.wifi
Enum WifiMode

java.lang.Object
  extended by java.lang.Enum<WifiMode>
      extended by com.eurotech.framework.net.wifi.WifiMode
All Implemented Interfaces:
Serializable, Comparable<WifiMode>

public enum WifiMode
extends Enum<WifiMode>

Modes of operation for wifi interfaces


Enum Constant Summary
ADHOC
          Uncoordinated network without central infrastructure.
INFRA
          Client mode - Coordinated network with one or more central controllers.
MASTER
          Access Point Mode - Coordinated network with one or more central controllers.
UNKNOWN
          Mode is unknown.
 
Method Summary
static int getCode(WifiMode wifiMode)
           
static WifiMode parseCode(int code)
           
static WifiMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WifiMode[] 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

UNKNOWN

public static final WifiMode UNKNOWN
Mode is unknown.


ADHOC

public static final WifiMode ADHOC
Uncoordinated network without central infrastructure.


INFRA

public static final WifiMode INFRA
Client mode - Coordinated network with one or more central controllers.


MASTER

public static final WifiMode MASTER
Access Point Mode - Coordinated network with one or more central controllers.

Method Detail

values

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

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

valueOf

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

parseCode

public static WifiMode parseCode(int code)

getCode

public static int getCode(WifiMode wifiMode)


Copyright © 2013. All Rights Reserved.