public class FeedDescriptor extends Object implements IFeedDescriptor
IFeedDescriptorDEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD| Constructor and Description |
|---|
FeedDescriptor()
Default constructor
|
FeedDescriptor(DataType dataType,
Instrument instrument,
Period period,
OfferSide offerSide,
PriceRange priceRange,
ReversalAmount reversalAmount,
TickBarSize tickBarSize,
Filter filter) |
FeedDescriptor(IFeedDescriptor feedDescriptor)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CreationPoint |
getCreationPoint()
Getter for DataType.LINE_BREAK, DataType.RENKO data creation point
|
DataInterpolationDescriptor |
getDataInterpolationDescriptor()
Getter for DataType.POINT_AND_FIGURE and DataType.PRICE_RANGE_AGGREGATION DataInterpolationDescriptor.
|
DataType |
getDataType()
Getter for data type
|
Filter |
getFilter()
Getter for filter
|
Instrument |
getInstrument()
Getter for instrument
|
LineBreakLookback |
getLineBreakLookback()
Getter for DataType.LINE_BREAK number of look-back lines.
|
OfferSide |
getOfferSide()
Getter for offer side
|
Period |
getPeriod()
Getter for period
|
PriceRange |
getPriceRange()
Getter for price range
|
RenkoCreationPoint |
getRenkoCreationPoint()
Getter for DataType.RENKO data creation point
|
Period |
getRenkoSession()
Getter for DataType.RENKO session period
|
ReversalAmount |
getReversalAmount()
Getter for reversal amount
|
TickBarSize |
getTickBarSize()
Getter for tick bar size
|
Period |
getTimeSession()
Getter for DataType.LINE_BREAK, DataType.RENKO session period
|
int |
hashCode() |
void |
setCreationPoint(CreationPoint creationPoint)
Setter for DataType.LINE_BREAK, DataType.RENKO data creation point
|
void |
setDataInterpolationDescriptor(DataInterpolationDescriptor interpolationDescriptor)
Setter for DataType.POINT_AND_FIGURE and DataType.PRICE_RANGE_AGGREGATION DataInterpolationDescriptor.
|
void |
setDataType(DataType dataType)
Setter for data type.
|
void |
setFilter(Filter filter)
Setter for filter
|
void |
setInstrument(Instrument instrument)
Setter for instrument
|
void |
setLineBreakLookback(LineBreakLookback numOfLines)
Setter for DataType.LINE_BREAK number of look-back lines.
|
void |
setOfferSide(OfferSide offerSide)
Setter for offer side
|
void |
setPeriod(Period period)
Setter for period.
|
void |
setPriceRange(PriceRange priceRange)
Setter for price range
|
void |
setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
Setter for DataType.RENKO data creation point
|
void |
setRenkoSession(Period nissonRenkoSessionPeriod)
Setter for DataType.RENKO session period
|
void |
setReversalAmount(ReversalAmount reversalAmount)
Setter for reversal amount
|
void |
setTickBarSize(TickBarSize tickBarSize)
Setter for tick bar size
|
void |
setTimeSession(Period timeSession)
Setter for DataType.LINE_BREAK, DataType.RENKO session period
|
String |
toString() |
static Period |
validateBasePeriod(Period basePeriod) |
protected static CreationPoint |
validateCreationPoint(CreationPoint creationPoint) |
protected static LineBreakLookback |
validateLineBreakLookback(LineBreakLookback lookbackLines) |
protected static RenkoCreationPoint |
validateRenkoCreationPoint(RenkoCreationPoint creationPoint) |
protected static Period |
validateRenkoSession(Period renkoSession) |
protected static Period |
validateTimeSession(Period timeSession) |
static FeedDescriptor |
valueOf(String paramValue) |
public FeedDescriptor()
public FeedDescriptor(DataType dataType, Instrument instrument, Period period, OfferSide offerSide, PriceRange priceRange, ReversalAmount reversalAmount, TickBarSize tickBarSize, Filter filter)
public FeedDescriptor(IFeedDescriptor feedDescriptor)
feedDescriptor - IFeedDescriptorpublic Instrument getInstrument()
getInstrument in interface IFeedDescriptorpublic void setInstrument(Instrument instrument)
setInstrument in interface IFeedDescriptorpublic OfferSide getOfferSide()
getOfferSide in interface IFeedDescriptorpublic void setOfferSide(OfferSide offerSide)
setOfferSide in interface IFeedDescriptorpublic DataType getDataType()
getDataType in interface IFeedDescriptorpublic void setDataType(DataType dataType)
setDataType in interface IFeedDescriptorpublic Period getPeriod()
getPeriod in interface IFeedDescriptorpublic void setPeriod(Period period)
DataType.TICK_BAR, DataType.PRICE_RANGE_AGGREGATION, DataType.RENKO, DataType.POINT_AND_FIGURE, DataType.LINE_BREAK)
period works as a base period (more information about base period - IFeedDescriptor.DEFAULT_BASE_PERIOD).
Only two base periods are possible - Period.INFINITY and one week (IFeedDescriptor.DEFAULT_BASE_PERIOD). If one provides anything else (including null) than Period.INFINITY, then at data
loading time it is considered to be as a default base period (IFeedDescriptor.DEFAULT_BASE_PERIOD).setPeriod in interface IFeedDescriptorpublic PriceRange getPriceRange()
getPriceRange in interface IFeedDescriptorpublic void setPriceRange(PriceRange priceRange)
setPriceRange in interface IFeedDescriptorpublic ReversalAmount getReversalAmount()
getReversalAmount in interface IFeedDescriptorpublic void setReversalAmount(ReversalAmount reversalAmount)
setReversalAmount in interface IFeedDescriptorpublic TickBarSize getTickBarSize()
getTickBarSize in interface IFeedDescriptorpublic void setTickBarSize(TickBarSize tickBarSize)
setTickBarSize in interface IFeedDescriptorpublic Filter getFilter()
getFilter in interface IFeedDescriptorpublic void setFilter(Filter filter)
setFilter in interface IFeedDescriptorpublic void setRenkoSession(Period nissonRenkoSessionPeriod)
setRenkoSession in interface IFeedDescriptorpublic Period getRenkoSession()
getRenkoSession in interface IFeedDescriptorpublic void setTimeSession(Period timeSession)
setTimeSession in interface IFeedDescriptorpublic Period getTimeSession()
getTimeSession in interface IFeedDescriptorpublic RenkoCreationPoint getRenkoCreationPoint()
getRenkoCreationPoint in interface IFeedDescriptorpublic void setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
setRenkoCreationPoint in interface IFeedDescriptorpublic void setCreationPoint(CreationPoint creationPoint)
setCreationPoint in interface IFeedDescriptorpublic CreationPoint getCreationPoint()
getCreationPoint in interface IFeedDescriptorpublic void setLineBreakLookback(LineBreakLookback numOfLines)
setLineBreakLookback in interface IFeedDescriptorpublic LineBreakLookback getLineBreakLookback()
getLineBreakLookback in interface IFeedDescriptorpublic void setDataInterpolationDescriptor(DataInterpolationDescriptor interpolationDescriptor)
setDataInterpolationDescriptor in interface IFeedDescriptorpublic DataInterpolationDescriptor getDataInterpolationDescriptor()
getDataInterpolationDescriptor in interface IFeedDescriptorpublic static FeedDescriptor valueOf(String paramValue)
protected static RenkoCreationPoint validateRenkoCreationPoint(RenkoCreationPoint creationPoint)
protected static CreationPoint validateCreationPoint(CreationPoint creationPoint)
protected static LineBreakLookback validateLineBreakLookback(LineBreakLookback lookbackLines)
Copyright © 2016. All rights reserved.