001/* Copyright (C) Cross The Road Electronics 2024 */ 002package com.ctre.phoenix; 003 004/** 005 * Interface for loopable objects 006 */ 007public interface ILoopable 008{ 009 /** 010 * Function called when object starts 011 */ 012 public void onStart(); 013 /** 014 * Function called every loop 015 */ 016 public void onLoop(); 017 /** 018 * @return true if object is done 019 */ 020 public boolean isDone(); 021 /** 022 * Function called when object stops 023 */ 024 public void onStop(); 025}