Package com.wolfram.alpha.impl
Class WAQueryParametersImpl
java.lang.Object
com.wolfram.alpha.impl.WAQueryParametersImpl
- All Implemented Interfaces:
WAQueryParameters
,Serializable
- Direct Known Subclasses:
WAEngine
,WAQueryImpl
- See Also:
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Boolean
protected String
protected double
protected String
protected String
protected double
protected boolean
protected String
protected String
protected Double
protected String
protected Double
protected double
protected int
protected Boolean
protected int
protected List<WAPodState>
protected double
protected double
protected String
protected int
-
Constructor Summary
ConstructorDescriptionConstructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssumption(String assumption)
void
addExcludePodID(String podid)
void
void
addIncludePodID(String podid)
void
addPodIndex(int podindex)
void
addPodScanner(String podscanner)
void
addPodState(WAPodState podstate)
void
addPodState(String podstate)
void
addPodState(String podstate, long id)
void
addPodTitle(String podtitle)
void
void
void
void
void
void
void
void
fillFromURL(String url)
String[]
double
getAsync()
String[]
String[]
double
String[]
getInput()
MethodsgetIP()
double[]
double
int
int
int[]
String[]
double
String[]
double
int
getWidth()
isMetric()
boolean
boolean
void
setAllowTranslation(Boolean allow)
void
setAsync(double async)
void
setCountryCode(String code)
void
setCurrency(String currency)
void
setFormatTimeout(double timeout)
void
void
void
setLatitude(double latitude)
void
setLatLong(String latlong)
void
setLocation(String loc)
void
setLongitude(double longitude)
void
setMagnification(double mag)
void
setMaxWidth(int width)
void
void
setPlotWidth(int width)
void
setPodTimeout(double timeout)
void
setReinterpret(boolean allowReinterpret)
void
setRelatedLinks(boolean include)
void
setScanTimeout(double timeout)
void
setSignature(String sig)
void
setWidth(int width)
-
Field Details
-
input
-
appid
-
formats
-
async
protected double async -
scanTimeout
protected double scanTimeout -
podTimeout
protected double podTimeout -
formatTimeout
protected double formatTimeout -
width
protected int width -
maxWidth
protected int maxWidth -
plotWidth
protected int plotWidth -
magnification
protected double magnification -
ip
-
location
-
latitude
-
longitude
-
metric
-
currency
-
countryCode
-
allowTranslation
-
includeRelatedLinks
protected boolean includeRelatedLinks -
allowReinterpret
protected boolean allowReinterpret -
signature
-
extraParams
-
podTitles
-
podScanners
-
podIndices
-
includePodIDs
-
excludePodIDs
-
podStates
-
assumptions
-
-
Constructor Details
-
WAQueryParametersImpl
public WAQueryParametersImpl()Constructor -
WAQueryParametersImpl
-
-
Method Details
-
getInput
Methods- Specified by:
getInput
in interfaceWAQueryParameters
-
setInput
- Specified by:
setInput
in interfaceWAQueryParameters
-
getFormats
- Specified by:
getFormats
in interfaceWAQueryParameters
-
addFormat
- Specified by:
addFormat
in interfaceWAQueryParameters
-
getScanTimeout
public double getScanTimeout()- Specified by:
getScanTimeout
in interfaceWAQueryParameters
-
setScanTimeout
public void setScanTimeout(double timeout)- Specified by:
setScanTimeout
in interfaceWAQueryParameters
-
getPodTimeout
public double getPodTimeout()- Specified by:
getPodTimeout
in interfaceWAQueryParameters
-
setPodTimeout
public void setPodTimeout(double timeout)- Specified by:
setPodTimeout
in interfaceWAQueryParameters
-
getFormatTimeout
public double getFormatTimeout()- Specified by:
getFormatTimeout
in interfaceWAQueryParameters
-
setFormatTimeout
public void setFormatTimeout(double timeout)- Specified by:
setFormatTimeout
in interfaceWAQueryParameters
-
getAsync
public double getAsync()- Specified by:
getAsync
in interfaceWAQueryParameters
-
setAsync
public void setAsync(double async)- Specified by:
setAsync
in interfaceWAQueryParameters
-
getIP
- Specified by:
getIP
in interfaceWAQueryParameters
-
setIP
- Specified by:
setIP
in interfaceWAQueryParameters
-
getLatLong
public double[] getLatLong()- Specified by:
getLatLong
in interfaceWAQueryParameters
-
setLatLong
- Specified by:
setLatLong
in interfaceWAQueryParameters
- Throws:
IllegalArgumentException
-
setLatitude
public void setLatitude(double latitude)- Specified by:
setLatitude
in interfaceWAQueryParameters
-
setLongitude
public void setLongitude(double longitude)- Specified by:
setLongitude
in interfaceWAQueryParameters
-
getLocation
- Specified by:
getLocation
in interfaceWAQueryParameters
-
setLocation
- Specified by:
setLocation
in interfaceWAQueryParameters
-
isMetric
- Specified by:
isMetric
in interfaceWAQueryParameters
-
setMetric
- Specified by:
setMetric
in interfaceWAQueryParameters
-
getCurrency
- Specified by:
getCurrency
in interfaceWAQueryParameters
-
setCurrency
- Specified by:
setCurrency
in interfaceWAQueryParameters
-
getCountryCode
- Specified by:
getCountryCode
in interfaceWAQueryParameters
-
setCountryCode
- Specified by:
setCountryCode
in interfaceWAQueryParameters
-
isAllowTranslation
- Specified by:
isAllowTranslation
in interfaceWAQueryParameters
-
setAllowTranslation
- Specified by:
setAllowTranslation
in interfaceWAQueryParameters
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceWAQueryParameters
-
setWidth
public void setWidth(int width)- Specified by:
setWidth
in interfaceWAQueryParameters
-
getMaxWidth
public int getMaxWidth()- Specified by:
getMaxWidth
in interfaceWAQueryParameters
-
setMaxWidth
public void setMaxWidth(int width)- Specified by:
setMaxWidth
in interfaceWAQueryParameters
-
getPlotWidth
public int getPlotWidth()- Specified by:
getPlotWidth
in interfaceWAQueryParameters
-
setPlotWidth
public void setPlotWidth(int width)- Specified by:
setPlotWidth
in interfaceWAQueryParameters
-
getMagnification
public double getMagnification()- Specified by:
getMagnification
in interfaceWAQueryParameters
-
setMagnification
public void setMagnification(double mag)- Specified by:
setMagnification
in interfaceWAQueryParameters
-
getPodTitles
- Specified by:
getPodTitles
in interfaceWAQueryParameters
-
addPodTitle
- Specified by:
addPodTitle
in interfaceWAQueryParameters
-
clearPodTitles
public void clearPodTitles()- Specified by:
clearPodTitles
in interfaceWAQueryParameters
-
getPodIndexes
public int[] getPodIndexes()- Specified by:
getPodIndexes
in interfaceWAQueryParameters
-
addPodIndex
public void addPodIndex(int podindex)- Specified by:
addPodIndex
in interfaceWAQueryParameters
-
clearPodIndexes
public void clearPodIndexes()- Specified by:
clearPodIndexes
in interfaceWAQueryParameters
-
getPodScanners
- Specified by:
getPodScanners
in interfaceWAQueryParameters
-
addPodScanner
- Specified by:
addPodScanner
in interfaceWAQueryParameters
-
clearPodScanners
public void clearPodScanners()- Specified by:
clearPodScanners
in interfaceWAQueryParameters
-
getIncludePodIDs
- Specified by:
getIncludePodIDs
in interfaceWAQueryParameters
-
addIncludePodID
- Specified by:
addIncludePodID
in interfaceWAQueryParameters
-
clearIncludePodIDs
public void clearIncludePodIDs()- Specified by:
clearIncludePodIDs
in interfaceWAQueryParameters
-
getExcludePodIDs
- Specified by:
getExcludePodIDs
in interfaceWAQueryParameters
-
addExcludePodID
- Specified by:
addExcludePodID
in interfaceWAQueryParameters
-
clearExcludePodIDs
public void clearExcludePodIDs()- Specified by:
clearExcludePodIDs
in interfaceWAQueryParameters
-
getPodStates
- Specified by:
getPodStates
in interfaceWAQueryParameters
-
addPodState
- Specified by:
addPodState
in interfaceWAQueryParameters
-
addPodState
- Specified by:
addPodState
in interfaceWAQueryParameters
-
addPodState
- Specified by:
addPodState
in interfaceWAQueryParameters
-
clearPodStates
public void clearPodStates()- Specified by:
clearPodStates
in interfaceWAQueryParameters
-
getAssumptions
- Specified by:
getAssumptions
in interfaceWAQueryParameters
-
addAssumption
- Specified by:
addAssumption
in interfaceWAQueryParameters
-
clearAssumptions
public void clearAssumptions()- Specified by:
clearAssumptions
in interfaceWAQueryParameters
-
setRelatedLinks
public void setRelatedLinks(boolean include)- Specified by:
setRelatedLinks
in interfaceWAQueryParameters
-
isRelatedLinks
public boolean isRelatedLinks()- Specified by:
isRelatedLinks
in interfaceWAQueryParameters
-
setReinterpret
public void setReinterpret(boolean allowReinterpret)- Specified by:
setReinterpret
in interfaceWAQueryParameters
-
isReinterpret
public boolean isReinterpret()- Specified by:
isReinterpret
in interfaceWAQueryParameters
-
setSignature
- Specified by:
setSignature
in interfaceWAQueryParameters
-
getExtraParams
- Specified by:
getExtraParams
in interfaceWAQueryParameters
-
getParameters
- Specified by:
getParameters
in interfaceWAQueryParameters
-
fillFromURL
- Specified by:
fillFromURL
in interfaceWAQueryParameters
-
toWebsiteURL
- Specified by:
toWebsiteURL
in interfaceWAQueryParameters
-