Package gov.nasa.jpf

Examples of gov.nasa.jpf.Config


   * at the searchStarted event, if the option nhandler.reset is set to true,
   * all the peer classes created on the fly are removed.
   */
  @Override
  public void searchStarted(Search search){
    Config config = search.getConfig();
    boolean reset = config.getBoolean("nhandler.clean");
    if(reset) {
      String path = config.getPath("jpf-nhandler") + "/onthefly";
      File onthefly = new File(path);
      String[] peers = onthefly.list();

      for(String name: peers) {
      if((reset && name.startsWith("OTF_JPF_") && (name.endsWith(".class") || name.endsWith(".java")))) {
View Full Code Here


 
  private static Logger logger = JPF.getLogger(ConformanceChecker.class.getName());

  public static void main(String[] args) {
   
    Config conf = JPF.createConfig(args);
   
    ProviderFactory.init(conf);
   
    ModelClassProvider modelProvider = ProviderFactory.getModelProvider()
   
View Full Code Here

   *
   * If there is a jpf config file available, then
   * properties are read from there.
   */
  public StandardClassProvider() {
    this(new Config(new String[]{}));
  }
View Full Code Here

  private Random rnd = new Random();
 
  File[] files;
 
  public ModelClassProvider() {
    this(new Config(new String[]{}));
  }
View Full Code Here

   */
  @Override
  public void searchStarted(Search search) {
    super.searchStarted(search);

    Config config = search.getVM().getConfig();
    // Decide whether it is client or server side
    String sideConfig = config.getString("jointstates.side");
    if (sideConfig != null) {
      if (sideConfig.equals("client")) {
        JointstatesListener.side = Side.CLIENT;
        JointstatesListener.otherSide = Side.SERVER;
      } else if (sideConfig.equals("server")) {
View Full Code Here

    for (String slc : slices) {
      if (isExpandable(slc)) {
        String name = slc.trim().substring(slc.indexOf("${") + 2,
                                           slc.indexOf("}"));
        String prop = getProperty(name);
        Config jc = new Config(new String[]{});
        String jpf = jc.getString(name);
        String sys = System.getProperty(name);

        if (prop != null) {
          if (isExpandable(prop)) {
            expanded = recursiveExpand(prop);
View Full Code Here

  private Scanner scanner;

  public ProjectScanner(Scanner scanner) {
    //--- It's used the Config constructor with empty args to load the whole
    //    JPF config stack because the string constructor is not available.
    config = new Config(new String[]{});
    this.scanner = scanner;
  }
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.Config

Copyright © 2018 www.massapicom. 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.