Examples of Experiment


Examples of com.google.api.adwords.v201309.cm.Experiment

          user.getService(AdWordsService.V201309.EXPERIMENT_SERVICE);

      long experimentId = Long.parseLong("INSERT_EXPERIMENT_ID_HERE");

      // Create experiment with DELETED status.
      Experiment experiment = new Experiment();
      experiment.setId(experimentId);
      experiment.setStatus(ExperimentStatus.DELETED);

      // Create operation.
      ExperimentOperation operation = new ExperimentOperation();
      operation.setOperand(experiment);
      operation.setOperator(Operator.SET);
View Full Code Here

Examples of com.infoclinika.mssharing.model.internal.entity.Experiment

        this.rawFilesRepository = rawFilesRepository;
    }

    @Override
    public PaginationItems.PagedItem<ExperimentFileItem> pagedFilesInExperiment(long actor, long experimentId, PaginationItems.PagedItemInfo pageInfo) {
        Experiment experiment = checkPresence(experimentRepository.findOne(experimentId));
        if (!ruleValidator.isUserCanReadExperiment(actor).apply(experiment))
            throw new AccessDenied("User hasn't permissions to read experiment");

        Page<RawFile> files = getPagedFiles(experimentId, pageInfo);
        return new PaginationItems.PagedItem<ExperimentFileItem>(files.getTotalPages(), files.getTotalElements(),
View Full Code Here

Examples of com.opensymphony.async.model.Experiment

    public void setNumRuns(int numRuns) {
        this.numRuns = numRuns;
    }

    public String execute() throws Exception {
        experiment = new Experiment();
        for (int i = 0; i < numRuns; i++) {
            Thread.sleep(1000);
            Run run = new Run();
            experiment.addRun(run);
        }
View Full Code Here

Examples of desmoj.core.simulator.Experiment

   */
  public static void main(java.lang.String[] args) {
    long start = System.currentTimeMillis();
    // create model and experiment
    InterruptsExample model = new InterruptsExample(null, "InterruptsExample", true, true);
    Experiment exp = new Experiment("InterruptsExampleExperiment", TimeUnit.SECONDS, TimeUnit.MINUTES, null);

    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(true); // display a progress bar (or not)
    exp.stop(new TimeInstant(1500, TimeUnit.MINUTES)); // set end of
                              // simulation at
                              // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)

    // start the Experiment at simulation time 0.0
    exp.start();

    // --> now the simulation is running until it reaches its end criterium
    // ...
    // ...
    // <-- afterwards, the main thread returns here

    // generate the report (and other output files)
    exp.report();

    // stop all threads still alive and close all output files
    exp.finish();
  }
View Full Code Here

Examples of desmoj.core.simulator.Experiment

public class MessageCrossbarExample extends Model {

  public static void main(java.lang.String[] args) {
    MessageCrossbarExample model = new MessageCrossbarExample(null, "MessageCrossbarExample", true, true);
    Experiment exp = new Experiment("MessageCrossbarExampleExperiment", TimeUnit.SECONDS, TimeUnit.MINUTES, null);

    model.connectToExperiment(exp);

    exp.setShowProgressBar(false);
    exp.stop(new TimeInstant(1440, TimeUnit.MINUTES));
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES));
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES));

    exp.start();
    exp.report();
    exp.finish();
  }
View Full Code Here

Examples of desmoj.core.simulator.Experiment

    // create model and experiment
    NewConnectionExample model = new NewConnectionExample(null, "VerkettungsExample", true, true);
    // null as first parameter because it is the main model and has no
    // mastermodel

    Experiment exp = new Experiment("VerkettungsExampleExperiment", TimeUnit.SECONDS, TimeUnit.MINUTES, null);
    // ATTENTION, since the name of the experiment is used in the names of
    // the
    // output files, you have to specify a string that's compatible with the
    // filename constraints of your computer's operating system. The remaing
    // three
    // parameters specify the granularity of simulation time, default unit
    // to
    // display time and the time formatter to use (null yields a default
    // formatter).
    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(false); // display a progress bar (or not)
    exp.stop(new TimeInstant(100, TimeUnit.MINUTES)); // set end of
                              // simulation at
                              // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)

    // start the experiment at simulation time 0.0
    exp.start();

    // --> now the simulation is running until it reaches its end criterion
    // ...
    // ...
    // <-- afterwards, the main thread returns here

    // generate the report (and other output files)
    exp.report();

    // stop all threads still alive and close all output files
    exp.finish();
  }
View Full Code Here

Examples of desmoj.core.simulator.Experiment

      public void init() {

      }
    };

    owner.connectToExperiment(new Experiment("TestExperiment"));
  }
View Full Code Here

Examples of desmoj.core.simulator.Experiment

    // create model and experiment
    ObserverExample model = new ObserverExample(null, "ObserverExample", true, true);
    // null as first parameter because it is the main model and has no
    // mastermodel

    Experiment exp = new Experiment("ObserverExampleExperiment", TimeUnit.SECONDS, TimeUnit.MINUTES, null);
    // ATTENTION, since the name of the experiment is used in the names of
    // the
    // output files, you have to specify a string that's compatible with the
    // filename constraints of your computer's operating system. The remaing
    // three
    // parameters specify the granularity of simulation time, default unit
    // to
    // display time and the time formatter to use (null yields a default
    // formatter).
    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(true); // display a progress bar (or not)
    exp.stop(new TimeInstant(150000, TimeUnit.MINUTES)); // set end of
                                // simulation at
                                // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)

    // start the experiment at simulation time 0.0
    exp.start();

    // --> now the simulation is running until it reaches its end criterion
    // ...
    // ...
    // <-- afterwards, the main thread returns here

    // generate the report (and other output files)
    exp.report();

    // stop all threads still alive and close all output files
    exp.finish();
  }
View Full Code Here

Examples of eu.planets_project.pp.plato.model.Experiment

            addStringElement(resourceDescr, "configSettings", a.getResourceDescription().getConfigSettings());
            addStringElement(resourceDescr, "reasonForConsidering", a.getResourceDescription().getReasonForConsidering());
            addChangeLog(a.getResourceDescription().getChangeLog(), resourceDescr);

            Element experiment = alt.addElement("experiment");
            Experiment exp = a.getExperiment();
            addStringElement(experiment, "description", exp.getDescription());
            //addStringElement(experiment, "runDescription", exp.getRunDescription());
            addStringElement(experiment, "settings", exp.getSettings());
            uploads = experiment.addElement("results");
            for (SampleObject record : exp.getResults().keySet()) {
                DigitalObject up = exp.getResults().get(record);
                if (up != null) {
                    // only existing uploads are exported
                    Element upload = addUpload(up, uploads, "result", encoder, uploadIDs);
                    if (upload != null) {
                       upload.addAttribute("key", record.getShortName());
                    }
                }
            }
//            // */experiment/xcdlDescriptions/xcdlDescription
//            Element xcdls = experiment.addElement("xcdlDescriptions");
//            for (SampleObject record : exp.getResults().keySet()) {
//                DigitalObject result = exp.getResults().get(record);
//                if (result != null) {
//                    XcdlDescription x = result.getXcdlDescription();
//                    if (x != null) {
//                        // only existing xcdls are exported
//                        Element upload = addUpload(x, xcdls, "xcdlDescription", encoder, uploadIDs);
//                        if (upload != null) {
//                           upload.addAttribute("key", record.getShortName());
//                        }
//                    }
//                }
//            }
            // export detailed experiment info's
            Element detailedInfos = experiment.addElement("detailedInfos");
            for (SampleObject record : exp.getDetailedInfo().keySet()) {
                DetailedExperimentInfo dinfo = exp.getDetailedInfo().get(record);
                Element detailedInfo = detailedInfos.addElement("detailedInfo")
                .addAttribute("key", record.getShortName())
                .addAttribute("successful", ""+dinfo.getSuccessful());
                addStringElement(detailedInfo, "programOutput", dinfo.getProgramOutput());
                addStringElement(detailedInfo, "cpr", dinfo.getCpr());
View Full Code Here

Examples of eu.planets_project.tb.api.model.Experiment

    /**
     * @return
     */
    private ExecutionRecordImpl getExecutionRecordForSessionId() {
        ExperimentInspector ei = (ExperimentInspector)JSFUtil.getManagedObject("ExperimentInspector");
        Experiment exp = ei.getExperimentBean().getExperiment();
        ifthis.isValid() && exp.getExperimentExecutable().getNumBatchExecutionRecords() > 0 ) {
            for( ExecutionRecordImpl exec : exp.getExperimentExecutable().getBatchExecutionRecords().iterator().next().getRuns() ) {
                ViewResultBean vrb = ViewResultBean.createViewResultBeanFromExecutionRecord(exec);
                if( vrb != null ) {
                    if( this.getSessionId().equals( vrb.getSessionId() )) {
                        return exec;
                    }
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.