All Downloads are FREE. Search and download functionalities are using the official Maven repository.

simkit.util.SimpleEventLogger Maven / Gradle / Ivy

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simkit.util;

import java.text.DecimalFormat;
import java.text.Format;
import java.util.logging.Logger;
import simkit.SimEvent;
import simkit.SimEventListener;

/**
 *
 * @author Kirk Stork, The MOVES Insititute, NPS
 * @version $Id: $
 */
public class SimpleEventLogger implements SimEventListener {

    public static final String _VERSION_ = "$Id: $";
    public static final Logger log = Logger.getLogger("simkit.util");

    static final Format form = new DecimalFormat("0.0000");

//    @Override
    public void processSimEvent(SimEvent event) {
        System.out.println(form.format(event.getScheduledTime()) +
                ":\t" + event.getEventName());
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy