All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.javanut.pronghorn.util.math.ScriptedSchedule Maven / Gradle / Ivy

Go to download

Ring buffer based queuing utility for applications that require high performance and/or a small footprint. Well suited for embedded and stream based processing.

There is a newer version: 1.1.27
Show newest version
package com.javanut.pronghorn.util.math;

import com.javanut.pronghorn.util.Appendables;

public class ScriptedSchedule {

    public final long commonClock;
    public final int[] script;
    public final int maxRun;
    
    public ScriptedSchedule(long commonClock, int[] script, int maxRun) {
        this.commonClock = commonClock;
        this.script = script;
        this.maxRun = maxRun;
    }
    
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();

        Appendables.appendValue(builder, "Clock:", commonClock, "ns  Script:");
        Appendables.appendArray(builder, '[', script, ']');
                
        return builder.toString();
    }
    

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy