Venice 0.751beta

nz.org.venice.alert
Class GondolaAlert

java.lang.Object
  extended bynz.org.venice.alert.Alert
      extended bynz.org.venice.alert.GondolaAlert

public class GondolaAlert
extends Alert

An alert whose trigger condition is a Gondola Expression. i.e. The alert triggers when the expression evaluates to True.

Author:
Mark Hummel
See Also:
Alert

Field Summary
static java.lang.String CLOSE_FIELD
           
static int EXACT_BOUND
           
static java.lang.String EXP_FIELD
           
static int GONDOLA_TRIGGER
           
static java.lang.String HIGH_FIELD
           
static java.lang.String LOW_FIELD
           
static int LOWER_BOUND
           
static java.lang.String OPEN_FIELD
           
static int UPPER_BOUND
           
static java.lang.String VOLUME_FIELD
           
 
Fields inherited from class nz.org.venice.alert.Alert
GONDOLA, OHLCV
 
Constructor Summary
GondolaAlert()
           
GondolaAlert(Symbol symbol, TradingDate startDate, TradingDate endDate, java.lang.String targetExpression, boolean enabled)
           
 
Method Summary
 java.lang.Object clone()
           
 int getBoundType()
           
 java.lang.String getField()
           
 java.lang.String getTargetExpression()
           
 java.lang.Double getTargetValue()
           
 int getType()
           
 boolean isEqualTo(Alert alert)
           
 void setBoundType(int boundType)
           
 void setField(java.lang.String field)
           
 void setTargetExpression(java.lang.String targetExpression)
           
 void setTargetValue(java.lang.Double value)
           
 java.lang.String toString()
           
 
Methods inherited from class nz.org.venice.alert.Alert
boundTypeToString, fieldToQuote, getDateSet, getEnabled, getEndDate, getStartDate, getSymbol, getTarget, setDateSet, setEnabled, setEndDate, setStartDate, setSymbol, setType, stringToBoundType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPPER_BOUND

public static final int UPPER_BOUND
See Also:
Constant Field Values

LOWER_BOUND

public static final int LOWER_BOUND
See Also:
Constant Field Values

EXACT_BOUND

public static final int EXACT_BOUND
See Also:
Constant Field Values

GONDOLA_TRIGGER

public static final int GONDOLA_TRIGGER
See Also:
Constant Field Values

OPEN_FIELD

public static final java.lang.String OPEN_FIELD
See Also:
Constant Field Values

HIGH_FIELD

public static final java.lang.String HIGH_FIELD
See Also:
Constant Field Values

LOW_FIELD

public static final java.lang.String LOW_FIELD
See Also:
Constant Field Values

CLOSE_FIELD

public static final java.lang.String CLOSE_FIELD
See Also:
Constant Field Values

VOLUME_FIELD

public static final java.lang.String VOLUME_FIELD
See Also:
Constant Field Values

EXP_FIELD

public static final java.lang.String EXP_FIELD
See Also:
Constant Field Values
Constructor Detail

GondolaAlert

public GondolaAlert()

GondolaAlert

public GondolaAlert(Symbol symbol,
                    TradingDate startDate,
                    TradingDate endDate,
                    java.lang.String targetExpression,
                    boolean enabled)
Method Detail

setTargetValue

public void setTargetValue(java.lang.Double value)
Specified by:
setTargetValue in class Alert

getTargetValue

public java.lang.Double getTargetValue()
Specified by:
getTargetValue in class Alert

getTargetExpression

public java.lang.String getTargetExpression()
Specified by:
getTargetExpression in class Alert

setTargetExpression

public void setTargetExpression(java.lang.String targetExpression)
Specified by:
setTargetExpression in class Alert

getType

public int getType()
Specified by:
getType in class Alert

getBoundType

public int getBoundType()
Specified by:
getBoundType in class Alert

setBoundType

public void setBoundType(int boundType)
Specified by:
setBoundType in class Alert

getField

public java.lang.String getField()
Specified by:
getField in class Alert

setField

public void setField(java.lang.String field)
Specified by:
setField in class Alert

toString

public java.lang.String toString()
Overrides:
toString in class Alert

clone

public java.lang.Object clone()
Specified by:
clone in class Alert

isEqualTo

public boolean isEqualTo(Alert alert)
Overrides:
isEqualTo in class Alert

Venice 0.751beta