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

com.flash3388.flashlib.robot.systems.Piston Maven / Gradle / Ivy

There is a newer version: 3.2.7
Show newest version
package com.flash3388.flashlib.robot.systems;

import com.flash3388.flashlib.scheduling.Requirement;
import com.flash3388.flashlib.scheduling.actions.Action;

public interface Piston extends Requirement {

    /**
     * Opens the piston.
     *
     * @return action to perform motion.
     */
    Action open();

    /**
     * Closes the piston.
     *
     * @return action to perform motion.
     */
    Action close();

    /**
     * Toggles the piston state: if open, closes it; if closed, opens it.
     *
     * @return action to perform motion.
     */
    Action toggle();

    /**
     * Gets whether the piston is open or close.
     *
     * @return true if open, false if closed.
     */
    boolean isOpen();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy