示例#1
0
 protected internal override EventBean PopulateMap(
     BaseStatisticsBean baseStatisticsBean,
     EventBeanTypedEventFactory eventAdapterService,
     EventType eventType,
     StatViewAdditionalPropsEval additionalProps,
     object[] decoration)
 {
     return DoPopulateMap(baseStatisticsBean, eventAdapterService, eventType, additionalProps, decoration);
 }
示例#2
0
 public RegressionLinestView(
     ViewFactory viewFactory,
     AgentInstanceContext agentInstanceContext,
     ExprEvaluator xEval,
     ExprEvaluator yEval,
     EventType eventType,
     StatViewAdditionalPropsEval additionalProps)
     : base(viewFactory, agentInstanceContext, xEval, yEval, eventType, additionalProps)
 {
 }
示例#3
0
 public SizeView(
     SizeViewFactory sizeViewFactory,
     AgentInstanceContext agentInstanceContext,
     EventType eventType,
     StatViewAdditionalPropsEval additionalProps)
 {
     this.sizeViewFactory = sizeViewFactory;
     this.agentInstanceContext = agentInstanceContext;
     this.eventType = eventType;
     this.additionalProps = additionalProps;
 }
示例#4
0
        /// <summary>
        ///     Populate bean.
        /// </summary>
        /// <param name="baseStatisticsBean">results</param>
        /// <param name="eventAdapterService">event wrapping</param>
        /// <param name="eventType">type to produce</param>
        /// <param name="additionalProps">addition properties</param>
        /// <param name="decoration">decoration values</param>
        /// <returns>bean</returns>
        public static EventBean DoPopulateMap(
            BaseStatisticsBean baseStatisticsBean,
            EventBeanTypedEventFactory eventAdapterService,
            EventType eventType,
            StatViewAdditionalPropsEval additionalProps,
            object[] decoration)
        {
            IDictionary<string, object> result = new Dictionary<string, object>();
            result.Put(ViewFieldEnum.CORRELATION__CORRELATION.GetName(), baseStatisticsBean.Correlation);
            additionalProps?.AddProperties(result, decoration);

            return eventAdapterService.AdapterForTypedMap(result, eventType);
        }
示例#5
0
 /// <summary>
 ///     Constructor requires the name of the two fields to use in the parent view to compute the statistics.
 /// </summary>
 /// <param name="expressionXEval">is the expression to get the X values from</param>
 /// <param name="expressionYEval">is the expression to get the Y values from</param>
 /// <param name="agentInstanceContext">contains required view services</param>
 /// <param name="eventType">type of event</param>
 /// <param name="additionalProps">additional props</param>
 /// <param name="viewFactory">view factory</param>
 public BaseBivariateStatisticsView(
     ViewFactory viewFactory,
     AgentInstanceContext agentInstanceContext,
     ExprEvaluator expressionXEval,
     ExprEvaluator expressionYEval,
     EventType eventType,
     StatViewAdditionalPropsEval additionalProps
 )
 {
     this.viewFactory = viewFactory;
     this.agentInstanceContext = agentInstanceContext;
     ExpressionXEval = expressionXEval;
     ExpressionYEval = expressionYEval;
     this.eventType = eventType;
     this.additionalProps = additionalProps;
 }