gov.bnl.star.offline.scheduler.dataset
Class EntryCounter

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.dataset.EntryCounter

public class EntryCounter
extends java.lang.Object

This class is used to quickly count and display the number of entries in the total dataset. These are printed to the screen. It wallows verification the entries are not dropped in error the after a dataset manipulation.

Author:
Levente B. Hajdu

Constructor Summary
EntryCounter()
          Creates a new instance of EntryCounter
 
Method Summary
static void countAndPrint(Dataset dataset, boolean printChangeOnly)
          Print the total number of entries in the dataset to the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryCounter

public EntryCounter()
Creates a new instance of EntryCounter

Method Detail

countAndPrint

public static void countAndPrint(Dataset dataset,
                                 boolean printChangeOnly)
Print the total number of entries in the dataset to the screen.

Parameters:
dataset - The filled dataset object from which the entries will be counted.
printChangeOnly - If this value is true it will only print the changes if there is a chnage in the number of entries in the datset.


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.