| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjas.statistics.functions.AbstractFunction
jas.statistics.functions.MaxTraceFunction
jas.statistics.functions.MaxTraceFunction.Long
public static class MaxTraceFunction.Long
An implementation of the MemorylessSeries class, which manages long type data sources.
Title: JAS
Description: Java Agent-based Simulation library
Copyright (C) 2002 Michele Sonnessa
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class jas.statistics.functions.MaxTraceFunction | 
|---|
MaxTraceFunction.Double, MaxTraceFunction.Float, MaxTraceFunction.Integer, MaxTraceFunction.Long | 
| Field Summary | 
|---|
| Fields inherited from class jas.statistics.functions.MaxTraceFunction | 
|---|
LAST_VALUE, MAX | 
| Fields inherited from interface jas.statistics.ILongSource | 
|---|
DEFAULT | 
| Fields inherited from interface jas.statistics.IDoubleSource | 
|---|
DEFAULT | 
| Constructor Summary | |
|---|---|
MaxTraceFunction.Long(ILongSource source,
                      int valueID)
Create a basic statistic probe on a IDblSource object.  | 
|
MaxTraceFunction.Long(java.lang.Object source,
                      java.lang.String valueName,
                      boolean getFromMethod)
Create a basic statistic probe on a generic object.  | 
|
| Method Summary | |
|---|---|
 void | 
applyFunction()
Read the source values and update statistics.  | 
 double | 
getDoubleValue(int valueID)
Return the result of a given statistic.  | 
 long | 
getLastValue()
Return the last double value read from the source object.  | 
 long | 
getLongValue(int valueID)
Return the result of a given statistic.  | 
 long | 
getMax()
The current maximum value.  | 
| Methods inherited from class jas.statistics.functions.MaxTraceFunction | 
|---|
performAction | 
| Methods inherited from class jas.statistics.functions.AbstractFunction | 
|---|
isCheckingTime, setCheckingTime, updateSource | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MaxTraceFunction.Long(ILongSource source,
                             int valueID)
name - Name of the statistic object.source - The IDblSource object.valueID - The value identifier defined by source object.
public MaxTraceFunction.Long(java.lang.Object source,
                             java.lang.String valueName,
                             boolean getFromMethod)
name - Name of the statistic object.source - A generic source object.valueName - The name of the field or the method returning the variable to be probed.getFromMethod - Specifies if valueName is a method or a property value.| Method Detail | 
|---|
public void applyFunction()
applyFunction in class MaxTraceFunctionpublic double getDoubleValue(int valueID)
getDoubleValue in interface IDoubleSourcevalueID - One of the F_ constants representing available statistics.
java.lang.UnsupportedOperationException - If the given valueID is not supported.public long getLastValue()
public long getLongValue(int valueID)
getLongValue in interface ILongSourcevalueID - One of the F_ constants representing available statistics.
java.lang.UnsupportedOperationException - If the given valueID is not supported.public long getMax()
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||