Examples of Settings


Examples of org.jquantlib.Settings

        if (date.le(notionalSchedule_.get(index)))
            // no doubt about what to return
            //return notionals_[index-1];
            return notionals_.get(index-1);
        else {
            if (new Settings().isTodaysPayments())
                // We consider today's payment as pending; the bond still
                // has the previous notional
                return notionals_.get(index-1);
            else
                // today's payment has occurred; the bond already changed
View Full Code Here

Examples of org.jresearch.flexess.umi.provider.impl.Settings

    IProviderInfo providerInfo = registry.getProviderInfo(providerId);
    if (providerInfo == null) {
      throw new UmiSettingsManagerException("There is no registered provider found  by id= " + providerId); //$NON-NLS-1$
    }

    Settings settings = new Settings();
    settings.setProviderId(providerInfo.getId());
    Collection<? extends IProviderPropertyGroupInfo> groups = providerInfo.getPropertyGroups();

    for (IProviderPropertyGroupInfo group : groups) {

      Collection<? extends IProviderPropertyInfo> properties = group.getConfigurationInfo();
      PropertyGroup propertyGroup = new PropertyGroup();
      propertyGroup.setName(group.getName());

      for (IProviderPropertyInfo property : properties) {
        NamedValue nv = new NamedValue();
        nv.setName(property.getName());
        nv.setValue(property.getDefaultValue());
        propertyGroup.addProperty(nv);
      }

      settings.addGroup(propertyGroup);
    }
    return settings;
  }
View Full Code Here

Examples of org.jscsi.target.settings.Settings

                phase = new TargetLoginPhase(this);
                if (phase.execute(lastReceivedPDU)) {
                    LOGGER.debug("Login Phase successful");

                    // if this is the leading connection, set the session type
                    final Settings settings = getSettings();
                    if (isLeadingConnection) targetSession.setSessionType(SessionType.getSessionType(settings.getSessionType()));
                    targetSession.setTargetName(settings.getTargetName());
                    // *** full feature phase ***
                    phase = new TargetFullFeaturePhase(this);

                    phase.execute();
                }
View Full Code Here

Examples of org.moltools.apps.probemaker.project.Settings

    return defaultParameters;
  }
 
  public void setProject(Project proj) {
    //Get the parameters for the project
    Settings s = proj.getSettings();
   
    //Add properties
    Map<String,String> params = s.getDesignParameters();
    addParameters(params);
  }
View Full Code Here

Examples of org.opencustomer.webapp.Settings

        } catch(MenuFactoryException e) {
           log.error("can not instantiate menu factory", e);
        }
       
        // dummy setzen der props
        Settings settings = Settings.getInstance();
        getServletContext().setAttribute(Globals.SETTINGS_KEY, settings);
       
        // Einlesen und setzen der Klassen-Properties
        File classProps = new File(this.getServletContext().getRealPath("/WEB-INF/properties/default_class.properties"));
        if (!classProps.exists())
View Full Code Here

Examples of org.openpixi.pixi.physics.Settings

* Intended mainly for debugging.
*/
public class SimpleDistSimTest {

  public static void main(String[] args) {
    Settings settings = new Settings();
    settings.setNumOfNodes(2);
    settings.setNumOfThreads(2);
    settings.setGridCellsX(8);
    settings.setGridCellsY(8);
    settings.setSimulationWidth(10 * settings.getGridCellsX());
    settings.setSimulationHeight(10 * settings.getGridCellsY());
    settings.setNumOfParticles(100);
    // If number of iterations is set to 0 we get a simple test
    // of problem distribution and results collection (we must use runAtOnce() method of
    // the EmulatedDistributedEnvironment).
    settings.setIterations(100);

    IplServer.start();
    new EmulatedDistributedEnvironment(settings).runInSteps();
    IplServer.end();
    System.out.println("PASSED ..... simple distributed simulation test");
View Full Code Here

Examples of org.smslib.Settings

      logger.info( "**************************************************");
      logger.info( "***********MODEM INCIADO OK***********************");
      logger.info( "**************************************************");

      Settings s = service.getSettings();
      Logger l = Logger.getLogger("smslib");
      l.setLevel(Level.ERROR);


    }    catch (Exception e) {
View Full Code Here

Examples of org.sonar.api.config.Settings

    verify(context, times(0)).saveMeasure((File) anyObject(), any(Measure.class));
  }  
 
  @Test
  public void shouldReportCoverageWhenVisualStudioCase() {
    Settings settings = new Settings();
    settings.setProperty(CxxCoverageSensor.REPORT_PATH_KEY, "coverage-reports/cobertura/specific-cases/coverage-result-visual-studio.xml");
    sensor = new CxxCoverageSensor(settings, fs);

    sensor.analyse(project, context);
   
    verify(context, times(0)).saveMeasure((File) anyObject(), any(Measure.class));
View Full Code Here

Examples of org.springframework.richclient.settings.Settings

  public void testCreate() throws SettingsException {
    XmlSettingsFactory settingsFactory = new XmlSettingsFactory();
    settingsFactory.setReaderWriter(new StringXmlSettingsReaderWriter(null));

    Settings settings = settingsFactory.createSettings("user");
    assertNotNull(settings);
    assertTrue(settings instanceof RootXmlSettings);
    assertEquals("user", settings.getName());

    RootXmlSettings rootXmlSettings = (RootXmlSettings) settings;
    Document document = rootXmlSettings.getDocument();
    assertNotNull(document);
  }
View Full Code Here

Examples of org.vocvark.DataTypes.Settings

*/
public final class Runner {

    public static void main(String args[]) {
        File[] fd = new File[]{new File("D:/01-Dunkelheit.mp3")};
        Settings settings = new Settings();
      //  settings.setSaveOverallRecordingFeatures(false);
        FeaturesExtraction extraction = new FeaturesExtraction();
        try {
            extraction.extract(fd, settings);
        } catch (Exception e) {
View Full Code Here
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.