|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--market.statistics.Statistics
Helper class that handles the filtering and creating of analyzable statistics.
Field Summary | |
static Object[] |
MONTHS
|
Constructor Summary | |
Statistics()
|
Method Summary | |
static Object[] |
createArticleStatisticsMonths(Object yearString)
Creates an array of all months of a given year from which statistics are available. |
static Object[] |
createArticleStatisticsYears()
Creates an array of all years from which statistics are available. |
static int |
getAllowableCustomerRevenue(UCustomer uc)
|
static CISalesStats |
getArticleStats(String id,
int mFrom,
int yFrom,
int mTo,
int yTo)
Sums up a CIalesStats for the desired range of time. |
static int |
getCompleteCustomerRevenue(UCustomer uc)
|
static CSalesStats |
getFirstArticleStatisticsEntry()
|
static int |
getFirstArticleStatisticsMonth()
|
static int |
getFirstArticleStatisticsYear()
|
static CSalesStats |
getLastArticleStatisticsEntry()
|
static int |
getLastArticleStatisticsMonth()
|
static int |
getLastArticleStatisticsYear()
|
static CSalesStats |
getOverallStats(int mFrom,
int yFrom,
int mTo,
int yTo)
Sums up the CSalesStats for the desired range of time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Object[] MONTHS
Constructor Detail |
public Statistics()
Method Detail |
public static Object[] createArticleStatisticsYears()
JCTimeRangeBoxes
that let the user
select a time range for statistics to be displayed.
public static Object[] createArticleStatisticsMonths(Object yearString)
JCTimeRangeBoxes
that let the user
only select a time ranges for which statistics are available.
JCTimeRangeBoxes.FromItemListener
,
JCTimeRangeBoxes.ToItemListener
public static CISalesStats getArticleStats(String id, int mFrom, int yFrom, int mTo, int yTo)
id
- the ID of the article for which statistics are asked for.mFrom
- the first month of the statistics interval.yFrom
- the first year of the statistics interval.mTo
- the last month of the statistics interval.yTo
- the last year of the statistics interval.
public static CSalesStats getFirstArticleStatisticsEntry()
CCompleteStats'
first entry.public static int getFirstArticleStatisticsYear()
public static int getFirstArticleStatisticsMonth()
public static CSalesStats getLastArticleStatisticsEntry()
public static int getLastArticleStatisticsYear()
public static int getLastArticleStatisticsMonth()
public static int getCompleteCustomerRevenue(UCustomer uc)
uc
- the customer whose statistics are of interest.
public static int getAllowableCustomerRevenue(UCustomer uc)
uc
- the customer whose allowable revenue is of interest.
public static CSalesStats getOverallStats(int mFrom, int yFrom, int mTo, int yTo)
mFrom
- the first month of the statistics interval.yFrom
- the first year of the statistics interval.mTo
- the last month of the statistics interval.yTo
- the last year of the statistics interval.
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |