Package microsim.statistics
Class Series
java.lang.Object
microsim.statistics.Series
- All Implemented Interfaces:
EventListener,IUpdatableSource
- Direct Known Subclasses:
Series.Double,Series.Float,Series.Integer,Series.Long
A series is a sequential collection of values coming from a given variable source over time.
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.- Author:
- Michele Sonnessa, Ross Richardson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the current status of the time checker.voidISimEventListener callback function.voidsetCheckingTime(boolean b) Set the current status of the time checker.abstract voidForce the source to update its currently cached data.
-
Field Details
-
timeChecker
-
-
Constructor Details
-
Series
public Series()
-
-
Method Details
-
updateSource
public abstract void updateSource()Description copied from interface:IUpdatableSourceForce the source to update its currently cached data.- Specified by:
updateSourcein interfaceIUpdatableSource
-
onEvent
ISimEventListener callback function. It supports only jas.engine.Sim.EVENT_UPDATE event.- Specified by:
onEventin interfaceEventListener- Throws:
UnsupportedOperationException- If actionType is not supported.
-
isCheckingTime
public boolean isCheckingTime()Return the current status of the time checker. A time checker avoid the object to update more than one time per simulation step. The default value is enabled (true).- Returns:
- True if the computer is currently checking time before update cached data, false if disabled.
-
setCheckingTime
public void setCheckingTime(boolean b) Set the current status of the time checker. A time checker avoid the object to update more than one time per simulation step. The default value is enabled (true).- Parameters:
b- True if the computer is currently checking time before update cached data, false if disabled.
-