/** * Set the no stack compaction flag. * @param value */ @Override public void setNoStackCompaction(boolean value) { setValue(NOSTACKCOMPACTION, value); }
/** Set the configuration name. */ @Override public void setConfigurationName(String value) { setValue(CONFIGURATION_NAME, value); }
/** Set autoshutdown flag. */ @Override public void setAutoShutdown(boolean value) { setValue(AUTOSHUTDOWN, value); }
/** * Set the monitoring level. * @param level */ @Override public void setMonitoring(IMonitoringService.PublishEventLevel level) { setValue(MONITORING, level); } /**
/** * Set the debug services flag. * @param value */ @Override public void setDebugServices(boolean value) { setValue(DEBUGSERVICES, value); } /**
/** * Set the main configuration file, e.g. path to PlatformAgent. * @param value Path to configuration file */ @Override public void setConfigurationFile(String value) { setValue(CONFIGURATION_FILE, value); } /**
/** * Set the persist flag. * @param value */ @Override public void setPersist(boolean value) { setValue(PERSIST, value); } /**
/** * Set the debug futures flag. * @param value */ @Override public void setDebugFutures(boolean value) { setValue(DEBUGFUTURES, value); }
/** Set the platform name. */ @Override public void setPlatformName(String value) { setValue(PLATFORM_NAME, value); }
/** Set platform component. */ @Override public void setPlatformComponent(Class value) { setValue(PLATFORM_COMPONENT, value); }
/** * Set the debug steps flag. * @param value */ @Override public void setDebugSteps(boolean value) { setValue(DEBUGSTEPS, value); }
/** * Enhance this config with given other config. * Will overwrite all values that are set in the other config. * @param other */ public void enhanceWith(StarterConfiguration other) { for (Map.Entry<String, Object> entry : other.cmdargs.entrySet()) { this.setValue(entry.getKey(), entry.getValue()); } }
/** * Set a value to both configs, not recommended. * Use specific methods instead. * @param key * @param value */ public void setValue(String key, Object value) { starterconfig.setValue(key, value); rootconfig.setValue(key, value); }
/** * Set the OPENGL flag. * @param value */ @Override public void setOpenGl(boolean value) { setValue(OPENGL, value); Class<?> p2d = SReflect.classForName0("jadex.extension.envsupport.observer.perspective.Perspective2D", Starter.class.getClassLoader()); if(p2d!=null) { try { p2d.getField("OPENGL").set(null, Boolean.valueOf(value)); } catch(Exception e) { e.printStackTrace(); } } } /**