com.dukascopy.api.indicators
Class OutputParameterInfo

java.lang.Object
  extended by com.dukascopy.api.indicators.OutputParameterInfo

public class OutputParameterInfo
extends Object

Describes output

Author:
Dmitry Shohov

Nested Class Summary
static class OutputParameterInfo.Type
          Type of the output
 
Field Summary
static int DASH_LINE
          Show output as dashed line
static int DOT
          Show output as dots
static int DOT_LINE
          Show output as dotted line
static int HISTO
          Show output as histogram
static int LINE
          Show output as line
static int PATTERN_BOOL
          If value is not zero, then draw pattern
static int PATTERN_BULL_BEAR
          If value: == 0 - no pattern > 0 - bullish < 0 - bearish
static int PATTERN_STRENGTH
          If value: == 0 - neutral ]0..100] getting bullish ]100..200] bullish [-100..0[ getting bearish [-200..100[ bearish
 
Constructor Summary
OutputParameterInfo()
          Creates empty parameter description without setting any field
OutputParameterInfo(String name, OutputParameterInfo.Type type, int flags)
          Creates output parameter descriptor and sets all fields
 
Method Summary
 int getFlags()
          Returns flags of the output
 String getName()
          Returns name of the output
 OutputParameterInfo.Type getType()
          Returns type of the output
 void setFlags(int flags)
          Sets flags of the output.
 void setName(String name)
          Sets name of the output
 void setType(OutputParameterInfo.Type type)
          Sets type of the output
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE

public static final int LINE
Show output as line

See Also:
Constant Field Values

DOT_LINE

public static final int DOT_LINE
Show output as dotted line

See Also:
Constant Field Values

DASH_LINE

public static final int DASH_LINE
Show output as dashed line

See Also:
Constant Field Values

DOT

public static final int DOT
Show output as dots

See Also:
Constant Field Values

HISTO

public static final int HISTO
Show output as histogram

See Also:
Constant Field Values

PATTERN_BOOL

public static final int PATTERN_BOOL
If value is not zero, then draw pattern

See Also:
Constant Field Values

PATTERN_BULL_BEAR

public static final int PATTERN_BULL_BEAR
If value: == 0 - no pattern > 0 - bullish < 0 - bearish

See Also:
Constant Field Values

PATTERN_STRENGTH

public static final int PATTERN_STRENGTH
If value: == 0 - neutral ]0..100] getting bullish ]100..200] bullish [-100..0[ getting bearish [-200..100[ bearish

See Also:
Constant Field Values
Constructor Detail

OutputParameterInfo

public OutputParameterInfo()
Creates empty parameter description without setting any field


OutputParameterInfo

public OutputParameterInfo(String name,
                           OutputParameterInfo.Type type,
                           int flags)
Creates output parameter descriptor and sets all fields

Parameters:
name - name of the output
type - type of the output
flags - flags of the output
Method Detail

getName

public String getName()
Returns name of the output

Returns:
name of the output

setName

public void setName(String name)
Sets name of the output

Parameters:
name - name of the output

getType

public OutputParameterInfo.Type getType()
Returns type of the output

Returns:
type of the output

setType

public void setType(OutputParameterInfo.Type type)
Sets type of the output

Parameters:
type - type of the output

getFlags

public int getFlags()
Returns flags of the output

Returns:
flags of the output

setFlags

public void setFlags(int flags)
Sets flags of the output. Use | operator to specify more than one flag

Parameters:
flags - flags of the output


Copyright © 2009. All Rights Reserved.