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

com.github.thehilikus.jrobocom.events.RobotEvent 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.robot.Robot;

/**
 * The parent of all robot events
 * 
 * @author hilikus
 */
public class RobotEvent extends EventObject {

    private static final long serialVersionUID = -2682402437090420424L;

    /**
     * Constructs an event
     * 
     * @param source the robot in question
     */
    public RobotEvent(Robot source) {
	super(source);
    }

    /* (non-Javadoc)
     * @see java.util.EventObject#getSource()
     */
    @Override
    public Robot getSource() {
	return (Robot) super.getSource();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy