public class InputParameterInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InputParameterInfo.Type
Type of the input
|
Constructor and Description |
---|
InputParameterInfo()
Creates input parameter descriptor without setting any field
|
InputParameterInfo(java.lang.String name,
InputParameterInfo.Type type)
Creates input parameter descriptor and sets all the fields
|
Modifier and Type | Method and Description |
---|---|
IIndicators.AppliedPrice |
getAppliedPrice()
Returns default applied price to use
|
Filter |
getFilter()
Returns filter of this input or null if no filter was set
|
Instrument |
getInstrument()
Returns instrument of this input, or null if no instrument was set
|
java.lang.String |
getName()
Returns name of the input
|
OfferSide |
getOfferSide()
Returns side of this input, or null if it was not set
|
Period |
getPeriod()
Returns period of this input if it was set, or null if period of the chart should be used
|
Period |
getPeriod(JFTimeZone timeZone)
Returns period of this input (adjusted to given time zone) if it was set, or null if period of the chart should be used
|
InputParameterInfo.Type |
getType()
Returns type of the input
|
boolean |
isAllowIndependentPeriod()
Returns true if setting of independent periods is allowed for the input
|
boolean |
isAutoAdjustTimeZone()
Returns true if input's time zone gets automatically adjusted to chart's time zone.
|
void |
setAllowIndependentPeriod(boolean allowIndependentPeriod)
Allows setting periods for this particular input that differ from main input's period.
|
void |
setAppliedPrice(IIndicators.AppliedPrice appliedPrice)
Sets default applied price to use
|
void |
setAutoAdjustTimeZone(boolean autoAdjustTimeZone)
Enables or disables the automatic adjustment of input period's time zone to chart's time zone (if indicator is on chart).
|
void |
setFilter(Filter filter)
Sets filter of this input.
|
void |
setInstrument(Instrument instrument)
Sets instrument of this input.
|
void |
setName(java.lang.String name)
Sets name of the input
|
void |
setOfferSide(OfferSide side)
Sets side of this input.
|
void |
setPeriod(Period period)
Sets period of this input.
|
void |
setType(InputParameterInfo.Type type)
Sets type of the input
|
public InputParameterInfo()
public InputParameterInfo(java.lang.String name, InputParameterInfo.Type type)
name
- name of the inputtype
- type of the inputpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- of the inputpublic InputParameterInfo.Type getType()
public void setType(InputParameterInfo.Type type)
type
- type of the inputpublic IIndicators.AppliedPrice getAppliedPrice()
public void setAppliedPrice(IIndicators.AppliedPrice appliedPrice)
appliedPrice
- default applied price to usepublic OfferSide getOfferSide()
public void setOfferSide(OfferSide side)
side
- side of the inputpublic Period getPeriod()
public Period getPeriod(JFTimeZone timeZone)
timeZone
- time zonepublic void setPeriod(Period period)
period
- period of the inputpublic Instrument getInstrument()
public void setInstrument(Instrument instrument)
instrument
- instrument of the inputpublic Filter getFilter()
public void setFilter(Filter filter)
filter
- filter of the inputpublic boolean isAllowIndependentPeriod()
public void setAllowIndependentPeriod(boolean allowIndependentPeriod)
allowIndependentPeriod
- allow setting independent periods for this particular inputpublic boolean isAutoAdjustTimeZone()
public void setAutoAdjustTimeZone(boolean autoAdjustTimeZone)
autoAdjustTimeZone
- enables/disables the automatic adjustment of input period's time zoneCopyright © 2024. All rights reserved.