Interface StreamUpdater

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    SimpleStreamUpdater, StreamSeedUpdater

    public interface StreamUpdater
    extends Serializable
    The StreamUpdater interface describes how to update the seed values for the next replication.

    Copyright (c) 2021-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.

    Author:
    Alexander Verbraeck
    • Method Detail

      • updateSeeds

        default void updateSeeds​(Map<String,​StreamInterface> streams,
                                 int replicationNumber)
        Update all seeds for the given replication number. The method should be fully reproducible, and can be based on the previous seed values, possibly the String representation, and the replication number.
        Parameters:
        streams - Map<String, StreamIterface>; the map of the streams for the replication
        replicationNumber - int; the replication number for which to set the seed values
      • updateSeed

        void updateSeed​(String streamId,
                        StreamInterface stream,
                        int replicationNumber)
        Update one seed for the given streamId and replication number. The method should be fully reproducible, and can be based on the previous seed value of the stream, possibly the String representation, and the replication number.
        Parameters:
        streamId - String; the id of the stream to update
        stream - StreamInterface; the stream to update for this replication
        replicationNumber - int; the replication number for which to set the seed value