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

com.github.thehilikus.jrobocom.events.TickEvent Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta-02
Show newest version
package com.github.thehilikus.jrobocom.events;

import java.util.EventObject;

import com.github.thehilikus.jrobocom.timing.api.Clock;

/**
 * Event to mark a clock pulse
 *
 * @author hilikus
 */
public class TickEvent extends EventObject {

    private static final long serialVersionUID = -3594255939076973376L;
    private long cycles;
    
    /**
     * @param source event origin
     * @param pCycles tick count
     */
    public TickEvent(Clock source, long pCycles) {
	super(source);
	cycles = pCycles;
    }

    /**
     * @return the cycles
     */
    public long getCycles() {
        return cycles;
    }
    
    

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy