Venice 0.751beta

nz.org.venice.alert
Class OHLCVAlert

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

public class OHLCVAlert
extends Alert

An alert whose trigger conditions are a quote value (Open, High, Low, Close, Volume) and a bound (Upper, Lower, Exact).

Author:
Mark Hummel
See Also:
Alert

Field Summary
 
Fields inherited from class nz.org.venice.alert.Alert
CLOSE_FIELD, EXACT_BOUND, EXP_FIELD, GONDOLA, GONDOLA_TRIGGER, HIGH_FIELD, LOW_FIELD, LOWER_BOUND, OHLCV, OPEN_FIELD, UPPER_BOUND, VOLUME_FIELD
 
Constructor Summary
OHLCVAlert()
           
OHLCVAlert(Symbol symbol, TradingDate startDate, TradingDate endDate, double targetValue, int boundType, java.lang.String field, 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 expression)
           
 void setTargetValue(java.lang.Double target)
           
 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
 

Constructor Detail

OHLCVAlert

public OHLCVAlert()

OHLCVAlert

public OHLCVAlert(Symbol symbol,
                  TradingDate startDate,
                  TradingDate endDate,
                  double targetValue,
                  int boundType,
                  java.lang.String field,
                  boolean enabled)
Method Detail

getTargetValue

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

setTargetValue

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

setTargetExpression

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

getTargetExpression

public java.lang.String getTargetExpression()
Specified by:
getTargetExpression 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

clone

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

isEqualTo

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

toString

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

Venice 0.751beta