Package javafx.beans.property

Examples of javafx.beans.property.SimpleLongProperty


    private long invalidationCount = 0;

    private FibTest(int n) {
        N = n;
        fib = new NumberExpression[N];
        fib[0] = new SimpleLongProperty(0);
        fib[1] = new SimpleLongProperty(0);
        for(int i = 2; i < N; ++i) {
            fib[i] = fib[i-2].add(fib[i-1]);
        }
    }
View Full Code Here


    public static void main(String[] args) {
        int n = 40;

        FibTest eagerTest = new FibTest(n);
        LongProperty eagerResult = new SimpleLongProperty();
        eagerTest.setupFor(eagerResult);

        FibTest lazyTest = new FibTest(n);
        org.reactfx.inhibeans.property.SimpleLongProperty lazyResult =
                new org.reactfx.inhibeans.property.SimpleLongProperty();
        lazyTest.setupFor(lazyResult);

        long t1 = System.currentTimeMillis();
        eagerTest.run();
        long t2 = System.currentTimeMillis();
        double eagerTime = (t2-t1)/1000.0;

        t1 = System.currentTimeMillis();
        Guard g = lazyResult.block();
        lazyTest.run();
        g.close();
        t2 = System.currentTimeMillis();
        double lazyTime = (t2-t1)/1000.0;

        System.out.println("EAGER TEST:");
        System.out.println("    fib_" + n + " = " + eagerResult.get());
        System.out.println("    result invalidations: " + eagerTest.invalidationCount);
        System.out.println("    duration: " + eagerTime + " seconds");
        System.out.println();
        System.out.println("LAZY TEST:");
        System.out.println("    fib_" + n + " = " + lazyResult.get());
View Full Code Here

    @Override
    public void initialize(URL url, ResourceBundle rb) {
        this.snapshots = FXCollections.observableArrayList();
        this.pools = FXCollections.observableHashMap();
        this.escalationsPresenter = new EscalationsPresenter(this.dashboardModel.serverUriProperty());
        this.usedHeapSizeInMB = new SimpleLongProperty();
        this.threadCount = new SimpleLongProperty();
        this.peakThreadCount = new SimpleIntegerProperty();
        this.busyThreads = new SimpleIntegerProperty();
        this.queuedConnections = new SimpleIntegerProperty();
        this.commitCount = new SimpleIntegerProperty();
        this.rollbackCount = new SimpleIntegerProperty();
        this.totalErrors = new SimpleIntegerProperty();
        this.activeSessions = new SimpleIntegerProperty();
        this.expiredSessions = new SimpleIntegerProperty();
        this.id = new SimpleLongProperty();
        this.commitsPerSecond = new SimpleDoubleProperty();
        this.rollbacksPerSecond = new SimpleDoubleProperty();
        this.deadlockedThreads = new SimpleStringProperty();
        this.initializeListeners();
    }
View Full Code Here

  public final SimpleStringProperty correlationId;
  public final SimpleStringProperty transactionId;
  public final SimpleStringProperty messageType;
 
  public AuditTrailResultModel(AuditTrailInfo auditTrailInfo) {
    id= new SimpleLongProperty(auditTrailInfo.getId());
    occurrence = new SimpleStringProperty(auditTrailInfo.getOccurrence()!=null?auditTrailInfo.getOccurrence().toString():"");
    conversationId = new SimpleStringProperty(auditTrailInfo.getConversationId());
    loglevel= new SimpleIntegerProperty(auditTrailInfo.getLoglevel());
    context = new SimpleStringProperty(auditTrailInfo.getContext());
    workflowInstanceId = new SimpleStringProperty(auditTrailInfo.getWorkflowInstanceId());
View Full Code Here

    this.priority = new SimpleIntegerProperty(workflowInstanceInfo.getPriority());
    this.processorPoolId = new SimpleStringProperty(workflowInstanceInfo.getProcessorPoolId());
    this.timeout = new SimpleObjectProperty<Date>(workflowInstanceInfo.getTimeout());
   
    this.lastActivityTimestamp=new SimpleObjectProperty<Date>(workflowInstanceInfo.getLastActivityTimestamp());
    this.overallLifetimeInMs=new SimpleLongProperty(workflowInstanceInfo.getOverallLifetimeInMs());
      this.startTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getStartTime());
      this.finishTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getFinishTime());
      this.lastErrorTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getLastErrorTime());
      this.errorInfos=new SimpleStringProperty(workflowInstanceInfo.getErrorInfos());
  }
View Full Code Here

            interval.set(clamp(50_000_000l, 5_000_000_000l, INTERVAL));
        }
    }
    public final LongProperty intervalProperty() {
        if (null == interval) {
            interval = new SimpleLongProperty(this, "interval", _interval);
        }
        return interval;
    }
View Full Code Here

        properties.put("frameVisible", new SimpleBooleanProperty(FRAME_VISIBLE));
        return this;
    }

    public final LedBuilder interval(final long INTERVAL) {
        properties.put("interval", new SimpleLongProperty(INTERVAL));
        return this;
    }
View Full Code Here

            interval.set(clamp(50_000_000l, 5_000_000_000l, INTERVAL));
        }
    }
    public final LongProperty intervalProperty() {
        if (null == interval) {
            interval = new SimpleLongProperty(this, "interval", _interval);
        }
        return interval;
    }
View Full Code Here

            interval.set(clamp(50_000_000l, 5_000_000_000l, INTERVAL));
        }
    }
    public final LongProperty intervalProperty() {
        if (null == interval) {
            interval = new SimpleLongProperty(this, "interval", _interval);
        }
        return interval;
    }
View Full Code Here

        properties.put("frameVisible", new SimpleBooleanProperty(FRAME_VISIBLE));
        return this;
    }

    public final LedBuilder interval(final long INTERVAL) {
        properties.put("interval", new SimpleLongProperty(INTERVAL));
        return this;
    }
View Full Code Here

TOP

Related Classes of javafx.beans.property.SimpleLongProperty

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.