Class SystemEvent

  • All Implemented Interfaces:
    java.lang.Comparable<Event>

    public class SystemEvent
    extends Event
    System events are directly processed by the simulation engine. There are some special events that engine is able to understand. For instance, you can schedule the end of simulation using a system event.
    SystemEvent e = new SystemEvent(Sim.EVENT_SIMULATION_END);
    eventQueue.schedule(100, e); The above code make the engine stop at 100. When this event happens the simulationEnd() method of the current running models is called.

    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