|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ViewSupport
net.esper.view.stat.BaseBivariateStatisticsView
public abstract class BaseBivariateStatisticsView
View for computing statistics that require 2 input variable arrays containing X and Y datapoints. Subclasses compute correlation or regression values, for instance.
Field Summary | |
---|---|
protected BaseStatisticsBean |
statisticsBean
This bean can be overridden by subclasses providing extra values such as correlation, regression. |
protected ViewServiceContext |
viewServiceContext
Services required by implementing classes. |
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
BaseBivariateStatisticsView()
Default constructor - required by all views to adhere to the Java bean specification. |
|
BaseBivariateStatisticsView(BaseStatisticsBean statisticsBean,
java.lang.String fieldNameX,
java.lang.String fieldNameY)
Constructor requires the name of the two fields to use in the parent view to compute the statistics. |
Method Summary | |
---|---|
java.lang.String |
attachesTo(Viewable parentView)
Return null if the view will accept being attached to a particular object. |
java.lang.String |
getFieldNameX()
Returns the field name of the field supplying X data points. |
java.lang.String |
getFieldNameY()
Returns the field name of the field supplying Y data points. |
ViewServiceContext |
getViewServiceContext()
Returns the context instances used by the view. |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setFieldNameX(java.lang.String fieldNameX)
Sets the field name of the X data column. |
void |
setFieldNameY(java.lang.String fieldNameY)
Sets the field name of the Y data column. |
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object. |
void |
setViewServiceContext(ViewServiceContext viewServiceContext)
Set the services context containing service handles. |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
Methods inherited from class net.esper.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, shallowCopyView, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BaseStatisticsBean statisticsBean
protected ViewServiceContext viewServiceContext
Constructor Detail |
---|
public BaseBivariateStatisticsView()
public BaseBivariateStatisticsView(BaseStatisticsBean statisticsBean, java.lang.String fieldNameX, java.lang.String fieldNameY)
statisticsBean
- is the base class prodiving sum of X and Y and squares for use by subclassesfieldNameX
- is the name of the field within the parent view to get the X values fromfieldNameY
- is the name of the field within the parent view to get the Y values fromMethod Detail |
---|
public ViewServiceContext getViewServiceContext()
ContextAwareView
getViewServiceContext
in interface ContextAwareView
public void setViewServiceContext(ViewServiceContext viewServiceContext)
ContextAwareView
setViewServiceContext
in interface ContextAwareView
viewServiceContext
- with service handlespublic final void setParent(Viewable parent)
View
setParent
in interface View
setParent
in class ViewSupport
parent
- is the parent that this view is a child ofpublic final java.lang.String attachesTo(Viewable parentView)
View
attachesTo
in interface View
parentView
- is the potential parent for this view
public final void update(EventBean[] newData, EventBean[] oldData)
View
update
in interface View
newData
- is the new data that has been added to the parent viewoldData
- is the old data that has been removed from the parent viewpublic final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface java.lang.Iterable<EventBean>
iterator
in interface EventCollection
public final java.lang.String getFieldNameX()
public final java.lang.String getFieldNameY()
public final void setFieldNameX(java.lang.String fieldNameX)
fieldNameX
- is the field name from which to get X data values.public final void setFieldNameY(java.lang.String fieldNameY)
fieldNameY
- is the field name from which to get Y data values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |