Package eas.users.students.fabian.graphicsonly

Source Code of eas.users.students.fabian.graphicsonly.GOSched1

/*
* File name:        GOSched1.java (package eas.users.fabian.graphicsonly)
* Author(s):        Fabian
* Java version:     6.0
* Generation date:  13.02.2012 (15:27:53)
*
* (c) This file and the EAS (Easy Agent Simulation) framework containing it
* is protected by Creative Commons by-nc-sa license. Any altered or
* further developed versions of this file have to meet the agreements
* stated by the license conditions.
*
* In a nutshell
* -------------
* You are free:
* - to Share -- to copy, distribute and transmit the work
* - to Remix -- to adapt the work
*
* Under the following conditions:
* - Attribution -- You must attribute the work in the manner specified by the
*   author or licensor (but not in any way that suggests that they endorse
*   you or your use of the work).
* - Noncommercial -- You may not use this work for commercial purposes.
* - Share Alike -- If you alter, transform, or build upon this work, you may
*   distribute the resulting work only under the same or a similar license to
*   this one.
*
* + Detailed license conditions (Germany):
*   http://creativecommons.org/licenses/by-nc-sa/3.0/de/
* + Detailed license conditions (unported):
*   http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en
*
* This header must be placed in the beginning of any version of this file.
*/

package eas.users.students.fabian.graphicsonly;

import java.util.LinkedList;
import java.util.List;

import eas.plugins.masterScheduler.AbstractDefaultMaster;
import eas.plugins.standard.visualization.visualization3D.VideoPluginLWJGL;
import eas.simulation.Wink;
import eas.simulation.event.EASEvent;
import eas.startSetup.ParCollection;
import eas.startSetup.SingleParameter;

/**
* @author Fabian
*
*/
public class GOSched1 extends AbstractDefaultMaster<GOEnv1> {

  /**
     *
     */
    private static final long serialVersionUID = 1293244779484825799L;

    /* (non-Javadoc)
   * @see eas.plugins.Plugin#getRequiredPlugins()
   */
  @Override
  public List<String> getRequiredPlugins() {
    // TODO Auto-generated method stub
    return null;
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#getParameters()
   */
  @Override
  public List<SingleParameter> getParameters() {
    // TODO Auto-generated method stub
    return super.getParameters();
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#id()
   */
  @Override
  public String id() {
    // TODO Auto-generated method stub
    return "defaultmaster-fr.3dgraphicsonly";
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#runBeforeSim(eas.simulation.EASRunnable, eas.startSetup.ParCollection)
   */
  @Override
  public void runBeforeSimulation(GOEnv1 env, ParCollection params) {
    env.addAgent(new GOAgent1(0, env, params));
   
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#runAfterSim(eas.simulation.EASRunnable, eas.startSetup.ParCollection)
   */
  @Override
  public void runAfterSimulation(GOEnv1 env, ParCollection params) {
    // TODO Auto-generated method stub
   
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#runDuringSim(eas.simulation.EASRunnable, eas.simulation.Wink, eas.startSetup.ParCollection)
   */
  @Override
  public void runDuringSimulation(GOEnv1 env, Wink currentSimTime,
      ParCollection params) {
    env.step(currentSimTime);
  }

  /* (non-Javadoc)
   * @see eas.plugins.Plugin#handleEvent(eas.simulation.event.EASEvent, eas.simulation.EASRunnable, eas.simulation.Wink, eas.startSetup.ParCollection)
   */
  @Override
  public void handleEvent(EASEvent e, GOEnv1 env, Wink lastSimTime,
      ParCollection params) {
    // TODO Auto-generated method stub
   
  }

  /* (non-Javadoc)
   * @see eas.simulation.masterScheduler.MasterScheduler#generateEnvironments(eas.startSetup.ParCollection)
   */
  @Override
  public GOEnv1[] generateRunnables(ParCollection params) {
    GOEnv1 env = new GOEnv1(0, params);
    return new GOEnv1[] { env };
  }

    /* (non-Javadoc)
     * @see eas.plugins.Plugin#getSupportedPlugins()
     */
    @Override
    public List<String> getSupportedPlugins() {
        LinkedList<String> list = new LinkedList<String>();
        list.add(new VideoPluginLWJGL().id());
        return list;
    }

}
TOP

Related Classes of eas.users.students.fabian.graphicsonly.GOSched1

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.