Class DeleteLogCommand

  • All Implemented Interfaces:
    edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Command

    public class DeleteLogCommand
    extends edu.wpi.first.wpilibj2.command.CommandBase
    Deletes RoboRio log files
    • Field Summary

      • Fields inherited from class edu.wpi.first.wpilibj2.command.CommandBase

        m_requirements
    • Constructor Summary

      Constructors 
      Constructor Description
      DeleteLogCommand​(int filesToKeep)
      Commmand that deletes a certain number of log files, starting from the oldest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end​(boolean interrupted)  
      void execute()  
      int getLogAmount()  
      void initialize()  
      boolean isFinished()  
      • Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase

        addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem, withName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface edu.wpi.first.wpilibj2.command.Command

        alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, hasRequirement, isScheduled, perpetually, raceWith, runsWhenDisabled, schedule, schedule, until, withInterrupt, withTimeout
    • Constructor Detail

      • DeleteLogCommand

        public DeleteLogCommand​(int filesToKeep)
        Commmand that deletes a certain number of log files, starting from the oldest
        Parameters:
        filesToKeep - Number of files to keep in the RoboRio
    • Method Detail

      • initialize

        public void initialize()
      • execute

        public void execute()
      • getLogAmount

        public int getLogAmount()
      • end

        public void end​(boolean interrupted)
      • isFinished

        public boolean isFinished()