com.dukascopy.api
Enum IEngine.StrategyMode

java.lang.Object
  extended by java.lang.Enum<IEngine.StrategyMode>
      extended by com.dukascopy.api.IEngine.StrategyMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IEngine.StrategyMode>
Enclosing interface:
IEngine

public static enum IEngine.StrategyMode
extends java.lang.Enum<IEngine.StrategyMode>

Specifies strategy running mode.


Enum Constant Summary
INDEPENDENT
          Strategy works as usual - it can create, close, modify etc orders on it's own
SIGNALS
          Strategy does not create, close or modify orders.
 
Method Summary
static IEngine.StrategyMode fromString(java.lang.String modeString)
           
 java.lang.String getModeString()
           
static IEngine.StrategyMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IEngine.StrategyMode[] 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

INDEPENDENT

public static final IEngine.StrategyMode INDEPENDENT
Strategy works as usual - it can create, close, modify etc orders on it's own


SIGNALS

public static final IEngine.StrategyMode SIGNALS
Strategy does not create, close or modify orders. It can only signalize about intention to make any activity.

Method Detail

values

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

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

valueOf

public static IEngine.StrategyMode 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

fromString

public static IEngine.StrategyMode fromString(java.lang.String modeString)

getModeString

public java.lang.String getModeString()