Package de.gsi.financial.samples.dos
Class OHLCVItem
- java.lang.Object
-
- de.gsi.financial.samples.dos.OHLCVItem
-
- All Implemented Interfaces:
de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
public class OHLCVItem extends java.lang.Object implements de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItemCommon wrapper of OHLC/V-OI object
-
-
Constructor Summary
Constructors Constructor Description OHLCVItem(java.util.Date timeStamp, double open, double high, double low, double close, double volume, double openInterest)OHLCVItem(java.util.Date timeStamp, double open, double high, double low, double close, double volume, double openInterest, double volumeUp, double volumeDown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)de.gsi.dataset.spi.financial.api.attrs.AttributeModelgetAddon()de.gsi.dataset.spi.financial.api.attrs.AttributeModelgetAddonOrCreate()doublegetClose()OHLCVItemExtendedgetExtended()doublegetHigh()doublegetLow()doublegetOpen()doublegetOpenInterest()java.util.DategetTimeStamp()doublegetVolume()doublegetVolumeDownBid()doublegetVolumeUpAsk()inthashCode()booleanisGap()voidsetAddon(de.gsi.dataset.spi.financial.api.attrs.AttributeModel addon)voidsetExtended(OHLCVItemExtended extended)voidsetGap(boolean gap)java.lang.StringtoString()java.lang.StringtoStringShort()
-
-
-
Constructor Detail
-
OHLCVItem
public OHLCVItem(java.util.Date timeStamp, double open, double high, double low, double close, double volume, double openInterest)
-
OHLCVItem
public OHLCVItem(java.util.Date timeStamp, double open, double high, double low, double close, double volume, double openInterest, double volumeUp, double volumeDown)
-
-
Method Detail
-
setAddon
public void setAddon(de.gsi.dataset.spi.financial.api.attrs.AttributeModel addon)
-
getAddon
public de.gsi.dataset.spi.financial.api.attrs.AttributeModel getAddon()
- Specified by:
getAddonin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getAddonOrCreate
public de.gsi.dataset.spi.financial.api.attrs.AttributeModel getAddonOrCreate()
- Specified by:
getAddonOrCreatein interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getExtended
public OHLCVItemExtended getExtended()
-
setExtended
public void setExtended(OHLCVItemExtended extended)
-
getTimeStamp
public java.util.Date getTimeStamp()
- Specified by:
getTimeStampin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getOpen
public double getOpen()
- Specified by:
getOpenin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getHigh
public double getHigh()
- Specified by:
getHighin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getLow
public double getLow()
- Specified by:
getLowin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getClose
public double getClose()
- Specified by:
getClosein interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getVolume
public double getVolume()
- Specified by:
getVolumein interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
getVolumeUpAsk
public double getVolumeUpAsk()
- Returns:
- volume up/ask volume
-
getVolumeDownBid
public double getVolumeDownBid()
- Returns:
- volume down/bid volume
-
getOpenInterest
public double getOpenInterest()
- Specified by:
getOpenInterestin interfacede.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
-
isGap
public boolean isGap()
-
setGap
public void setGap(boolean gap)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringShort
public java.lang.String toStringShort()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-