examples.statistics.v01
Class StatisticsComponent

java.lang.Object
  extended by examples.statistics.v01.StatisticsComponent
All Implemented Interfaces:
IUnknown, IStatistics
Direct Known Subclasses:
StatisticsComponentAssyncMessage, StatisticsComponentSyncMessage

public class StatisticsComponent
extends java.lang.Object
implements IStatistics


Field Summary
static java.lang.String ISTATISTICS_ID
           
static java.lang.String STATISTICSCOMPONENT_ID
           
 
Constructor Summary
StatisticsComponent(java.lang.String primaryKey)
           
 
Method Summary
 float average()
          return the average of float values.
 java.lang.String getPrimaryKey()
          Return the component Key This key identify the component
 void insertValue(float value)
          Insert an float value.
 IUnknown queryInterface(java.lang.String interfaceId)
          Return the component Interface based on your id.
 float sum()
          return a sum of float values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATISTICSCOMPONENT_ID

public static final java.lang.String STATISTICSCOMPONENT_ID
See Also:
Constant Field Values

ISTATISTICS_ID

public static final java.lang.String ISTATISTICS_ID
See Also:
Constant Field Values
Constructor Detail

StatisticsComponent

public StatisticsComponent(java.lang.String primaryKey)
Method Detail

getPrimaryKey

public java.lang.String getPrimaryKey()
Description copied from interface: IUnknown
Return the component Key This key identify the component

Specified by:
getPrimaryKey in interface IUnknown
Returns:
the Component's Primary Key

queryInterface

public IUnknown queryInterface(java.lang.String interfaceId)
Description copied from interface: IUnknown
Return the component Interface based on your id.

Specified by:
queryInterface in interface IUnknown
Returns:

insertValue

public void insertValue(float value)
Description copied from interface: IStatistics
Insert an float value. this method ll be deprecated, it will be substituted for public void insertValue(Number number);

Specified by:
insertValue in interface IStatistics

sum

public float sum()
Description copied from interface: IStatistics
return a sum of float values. this method ll be deprecated, it will be substituted for public Number sum();

Specified by:
sum in interface IStatistics
Returns:

average

public float average()
Description copied from interface: IStatistics
return the average of float values. this method ll be deprecated, it will be substituted for public void average();

Specified by:
average in interface IStatistics
Returns:


Copyright © 2007. All Rights Reserved.