<commit_before>/* Generated by Together */

package ASSET;

import ASSET.Models.Environment.EnvironmentType;
import ASSET.Scenario.ParticipantsChangedListener;
import ASSET.Scenario.ScenarioActivityMonitor;
import ASSET.Scenario.ScenarioRunningListener;
import ASSET.Scenario.ScenarioSteppedListener;
import MWC.GenericData.Duration;

import java.util.Collection;

public interface ScenarioType extends ScenarioActivityMonitor
{


  /**
   * **************************************************************
   * names of properties which may be listened to
   * **************************************************************
   */
  public static final String NAME = "NAME";
  public static final String UNKNOWN = "UNKNOWN";

  /**
   * null-value for participant id's
   */
  public static final int INVALID_ID = -1;

  /**
   * restart the scenario.  this will reset all participants together with their sensors, movement models
   * and behaviours
   */
  public void restart();

  /**
   * Start the scenario auto-stepping through itself.
   * If the step time is set to zero, it will automatically step after the completion of the previous step.
   */
  public void start();

  /**
   * Stop the scenario from auto-stepping
   *
   * @param reason
   */
  public void stop(String reason);

  /**
   * Move the scenario through a single step
   */
  public void step();

  /**
   * @return the scenario time step
   */
  public int getScenarioStepTime();

  /**
   * set the scenario time step
   *
   * @param step_size millis to step scenario forward at each step
   */
  public void setScenarioStepTime(int step_size);

  /**
   * set the scenario time step
   *
   * @param step_size time to step scenario forward at each step
   */
  public void setScenarioStepTime(Duration step_size);

  /**
   * set the current scenario time
   */
  public void setTime(long time);

  /**
   * get the current scenario time
   */
  public long getTime();

  /**
   * @return the step time for auto-stepping (or zero to run on)
   */
  int getStepTime();

  /**
   * set the size of the time step (or zero to run to completion)
   *
   * @param step_size millis to step forward at each step (or zero to run)
   */
  void setStepTime(int step_size);

  /**
   * set the size of the time step (or zero to run to completion)
   *
   * @param step_size to step forward at each step (or zero to run)
   */
  void setStepTime(Duration step_size);


  /**
   * get the name of this scenario
   */
  String getName();

  /**
   * set the name of this scenario
   */
  void setName(String val);

  /**
   * get the environment for this model
   */
  public EnvironmentType getEnvironment();

  /**
   * set the environment for this model
   */
  public void setEnvironment(EnvironmentType theEnv);

  /**
   * Shut down this scenario.  Close the participants, etc
   */
  void close();


  ////////////////////////////////////////////////////////
  // listener-related
  ////////////////////////////////////////////////////////
  public void addParticipantsChangedListener(ParticipantsChangedListener listener);

  public void removeParticipantsChangedListener(ParticipantsChangedListener listener);

  public void addScenarioRunningListener(ScenarioRunningListener listener);

  public void removeScenarioRunningListener(ScenarioRunningListener listener);

  public void addScenarioSteppedListener(ScenarioSteppedListener listener);

  public void removeScenarioSteppedListener(ScenarioSteppedListener listener);

  // property change listeners
  public void addPropertyChangeListener(String property_name, java.beans.PropertyChangeListener listener);

  public void removePropertyChangeListener(String property_name, java.beans.PropertyChangeListener listener);


  ////////////////////////////////////////////////////////
  // participant-related
  ////////////////////////////////////////////////////////
  /**
   * Return a particular Participant - so that the Participant can be controlled directly.  Listeners added/removed. Participants added/removed, etc.
   */
  ParticipantType getThisParticipant(int id);

  /**
   * Provide a list of id numbers of Participant we contain
   *
   * @return list of ids of Participant we contain
   */
  public Integer[] getListOfParticipants();

  /**
   * Provide a list of id numbers of visible Participants we contain
   * (in monte carlo, the multiple instances can't see each other)
   *
   * @return list of ids of Participant we contain
   */
  public Collection getListOfVisibleParticipants();

  /**
   * Create a new Participant.  The external client can then request the Participant itself to perform any edits
   *
   * @param participant_type the type of Participant the client wants
   * @return the id of the new Participant
   */
  int createNewParticipant(String participant_type);

  /**
   * remove the indicated participant
   */
  public void removeParticipant(int index);


  /**
   * retreive the case this auto-generated scenario represents
   *
   * @return
   */
  String getCaseId();

  /**
   * set the case this auto-generated scenario represents
   *
   * @param myCaseId
   */
  void setCaseId(String myCaseId);
}<commit_msg>Give scenario a backdrop layers property<commit_after>/* Generated by Together */

package ASSET;

import ASSET.Models.Environment.EnvironmentType;
import ASSET.Scenario.ParticipantsChangedListener;
import ASSET.Scenario.ScenarioActivityMonitor;
import ASSET.Scenario.ScenarioRunningListener;
import ASSET.Scenario.ScenarioSteppedListener;
import MWC.GUI.Layer;
import MWC.GenericData.Duration;

import java.util.Collection;

public interface ScenarioType extends ScenarioActivityMonitor
{


  /**
   * **************************************************************
   * names of properties which may be listened to
   * **************************************************************
   */
  public static final String NAME = "NAME";
  public static final String UNKNOWN = "UNKNOWN";

  /**
   * null-value for participant id's
   */
  public static final int INVALID_ID = -1;

  /**
   * restart the scenario.  this will reset all participants together with their sensors, movement models
   * and behaviours
   */
  public void restart();

  /**
   * Start the scenario auto-stepping through itself.
   * If the step time is set to zero, it will automatically step after the completion of the previous step.
   */
  public void start();

  /**
   * Stop the scenario from auto-stepping
   *
   * @param reason
   */
  public void stop(String reason);

  /**
   * Move the scenario through a single step
   */
  public void step();

  /**
   * @return the scenario time step
   */
  public int getScenarioStepTime();

  /**
   * set the scenario time step
   *
   * @param step_size millis to step scenario forward at each step
   */
  public void setScenarioStepTime(int step_size);

  /**
   * set the scenario time step
   *
   * @param step_size time to step scenario forward at each step
   */
  public void setScenarioStepTime(Duration step_size);

  /**
   * set the current scenario time
   */
  public void setTime(long time);

  /**
   * get the current scenario time
   */
  public long getTime();

  /**
   * @return the step time for auto-stepping (or zero to run on)
   */
  int getStepTime();

  /**
   * set the size of the time step (or zero to run to completion)
   *
   * @param step_size millis to step forward at each step (or zero to run)
   */
  void setStepTime(int step_size);

  /**
   * set the size of the time step (or zero to run to completion)
   *
   * @param step_size to step forward at each step (or zero to run)
   */
  void setStepTime(Duration step_size);


  /**
   * get the name of this scenario
   */
  String getName();

  /**
   * set the name of this scenario
   */
  void setName(String val);

  /**
   * get the environment for this model
   */
  public EnvironmentType getEnvironment();

  /**
   * set the environment for this model
   */
  public void setEnvironment(EnvironmentType theEnv);

  /**
   * Shut down this scenario.  Close the participants, etc
   */
  void close();


  ////////////////////////////////////////////////////////
  // listener-related
  ////////////////////////////////////////////////////////
  public void addParticipantsChangedListener(ParticipantsChangedListener listener);

  public void removeParticipantsChangedListener(ParticipantsChangedListener listener);

  public void addScenarioRunningListener(ScenarioRunningListener listener);

  public void removeScenarioRunningListener(ScenarioRunningListener listener);

  public void addScenarioSteppedListener(ScenarioSteppedListener listener);

  public void removeScenarioSteppedListener(ScenarioSteppedListener listener);

  // property change listeners
  public void addPropertyChangeListener(String property_name, java.beans.PropertyChangeListener listener);

  public void removePropertyChangeListener(String property_name, java.beans.PropertyChangeListener listener);


  ////////////////////////////////////////////////////////
  // participant-related
  ////////////////////////////////////////////////////////
  /**
   * Return a particular Participant - so that the Participant can be controlled directly.  Listeners added/removed. Participants added/removed, etc.
   */
  ParticipantType getThisParticipant(int id);

  /**
   * Provide a list of id numbers of Participant we contain
   *
   * @return list of ids of Participant we contain
   */
  public Integer[] getListOfParticipants();

  /**
   * Provide a list of id numbers of visible Participants we contain
   * (in monte carlo, the multiple instances can't see each other)
   *
   * @return list of ids of Participant we contain
   */
  public Collection getListOfVisibleParticipants();

  /**
   * Create a new Participant.  The external client can then request the Participant itself to perform any edits
   *
   * @param participant_type the type of Participant the client wants
   * @return the id of the new Participant
   */
  int createNewParticipant(String participant_type);

  /**
   * remove the indicated participant
   */
  public void removeParticipant(int index);


  /**
   * retreive the case this auto-generated scenario represents
   *
   * @return
   */
  String getCaseId();

  /**
   * set the case this auto-generated scenario represents
   *
   * @param myCaseId
   */
  void setCaseId(String myCaseId);
  
  /** find out what is plotted in the background
   * 
   * @return
   */
  public Layer getBackdrop();
  
  /** set what we see in the backdrop
   * 
   * @param layer
   */
  public void setBackdrop(Layer layer);
  
  
}
{'fraction_non_alphanumeric': 0.14027999624166118, 'fraction_numerical': 0.0001879169407122052, 'mean_word_length': 2.8439869989165762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7320049', 'n_tokens_mistral': 2823, 'n_tokens_neox': 2686, 'n_words': 996}