public class FeedDescriptor extends Object implements IFeedDescriptor
IFeedDescriptor
DEFAULT_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 IFeedDescriptor
public void setInstrument(Instrument instrument)
setInstrument
in interface IFeedDescriptor
public OfferSide getOfferSide()
getOfferSide
in interface IFeedDescriptor
public void setOfferSide(OfferSide offerSide)
setOfferSide
in interface IFeedDescriptor
public DataType getDataType()
getDataType
in interface IFeedDescriptor
public void setDataType(DataType dataType)
setDataType
in interface IFeedDescriptor
public Period getPeriod()
getPeriod
in interface IFeedDescriptor
public 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 IFeedDescriptor
public PriceRange getPriceRange()
getPriceRange
in interface IFeedDescriptor
public void setPriceRange(PriceRange priceRange)
setPriceRange
in interface IFeedDescriptor
public ReversalAmount getReversalAmount()
getReversalAmount
in interface IFeedDescriptor
public void setReversalAmount(ReversalAmount reversalAmount)
setReversalAmount
in interface IFeedDescriptor
public TickBarSize getTickBarSize()
getTickBarSize
in interface IFeedDescriptor
public void setTickBarSize(TickBarSize tickBarSize)
setTickBarSize
in interface IFeedDescriptor
public Filter getFilter()
getFilter
in interface IFeedDescriptor
public void setFilter(Filter filter)
setFilter
in interface IFeedDescriptor
public void setRenkoSession(Period nissonRenkoSessionPeriod)
setRenkoSession
in interface IFeedDescriptor
public Period getRenkoSession()
getRenkoSession
in interface IFeedDescriptor
public void setTimeSession(Period timeSession)
setTimeSession
in interface IFeedDescriptor
public Period getTimeSession()
getTimeSession
in interface IFeedDescriptor
public RenkoCreationPoint getRenkoCreationPoint()
getRenkoCreationPoint
in interface IFeedDescriptor
public void setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
setRenkoCreationPoint
in interface IFeedDescriptor
public void setCreationPoint(CreationPoint creationPoint)
setCreationPoint
in interface IFeedDescriptor
public CreationPoint getCreationPoint()
getCreationPoint
in interface IFeedDescriptor
public void setLineBreakLookback(LineBreakLookback numOfLines)
setLineBreakLookback
in interface IFeedDescriptor
public LineBreakLookback getLineBreakLookback()
getLineBreakLookback
in interface IFeedDescriptor
public void setDataInterpolationDescriptor(DataInterpolationDescriptor interpolationDescriptor)
setDataInterpolationDescriptor
in interface IFeedDescriptor
public DataInterpolationDescriptor getDataInterpolationDescriptor()
getDataInterpolationDescriptor
in interface IFeedDescriptor
public 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.