Interface IUpdatableSource

All Known Implementing Classes:
AbstractArrayFunction, AbstractFunction, AbstractWeightedArrayFunction, CountArrayFunction, CrossSection, CrossSection.Double, CrossSection.Float, CrossSection.Integer, CrossSection.Long, MaxArrayFunction, MaxArrayFunction.Double, MaxArrayFunction.Float, MaxArrayFunction.Integer, MaxArrayFunction.Long, MaxTraceFunction, MaxTraceFunction.Double, MaxTraceFunction.Float, MaxTraceFunction.Integer, MaxTraceFunction.Long, MeanArrayFunction, MeanVarianceArrayFunction, MinArrayFunction, MinArrayFunction.Double, MinArrayFunction.Float, MinArrayFunction.Integer, MinArrayFunction.Long, MinTraceFunction, MinTraceFunction.Double, MinTraceFunction.Float, MinTraceFunction.Integer, MinTraceFunction.Long, MovingAverageArrayFunction, MovingAverageTraceFunction, MultiTraceFunction, MultiTraceFunction.Double, MultiTraceFunction.Float, MultiTraceFunction.Integer, MultiTraceFunction.Long, PercentileArrayFunction, Series, Series.Double, Series.Float, Series.Integer, Series.Long, SumArrayFunction, SumArrayFunction.Double, SumArrayFunction.Float, SumArrayFunction.Integer, SumArrayFunction.Long, TimeSeries, Weighted_CrossSection, Weighted_CrossSection.Double, Weighted_CrossSection.Float, Weighted_CrossSection.Integer, Weighted_CrossSection.Long, Weighted_MeanArrayFunction, Weighted_SumArrayFunction, Weighted_SumArrayFunction.Double, Weighted_SumArrayFunction.Float, Weighted_SumArrayFunction.Integer, Weighted_SumArrayFunction.Long

public interface IUpdatableSource
An updatable source is a class implementing one of the I*Source interfaces, which needs to be updated to refresh its data. Typically an data source which retrieves data from other source keeps them into a cache and refreshes the cache when the consumer needs a new refresh.
A CrossSection, for instance, is an updatable source, since it collects data from a collection. Accessing its source interface, the consumer can obtain the lastest cached data, but if it want updated ones it has to invoke the updateSource() method of the CrossSection.
Each statistical object contained in the jas.statistics package automatically refreshes the IUpdatableSource source before retrieving the latest data.

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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Force the source to update its currently cached data.
  • Method Details

    • updateSource

      void updateSource()
      Force the source to update its currently cached data.