Class Core

java.lang.Object
org.wildstang.framework.core.Core

public class Core extends Object
Core of robot framework.
  • Constructor Details

    • Core

      public Core(Class<?> p_inputFactoryClass, Class<?> p_outputFactoryClass)
      Constructor collects I/O factory and initialized framework components.
      Parameters:
      p_inputFactoryClass - InputFactory Class
      p_outputFactoryClass - OutputFactory Class
  • Method Details

    • createOutputs

      public void createOutputs(Outputs[] p_outputs)
      Uses RoboRIOOutputFactory to take an array of enumerations of Outputs and build an Output of each.
      Parameters:
      p_outputs - All enumerations of Outputs to be created.
    • createInputs

      public void createInputs(Inputs[] p_inputs)
      Uses RoboRIOInputFactory to take an array of enumerations of Inputs and build an Input of each.
      Parameters:
      p_inputs - All enumerations of Inputs to be created.
    • createSubsystems

      public void createSubsystems(Subsystems[] p_subsystems)
      Takes an array of enumerations of Subsystems and build a Subsystem of each.
      Parameters:
      p_subsystems - All enumerations of Subsystems to be created.
    • createAutoPrograms

      public void createAutoPrograms(AutoPrograms[] p_programs)
      Takes an array of enumerations of AutoPrograms and build an AutoProgram of each.
      Parameters:
      p_programs - All enumerations of AutoPrograms to be created.
    • getAlliance

      public static edu.wpi.first.wpilibj.DriverStation.Alliance getAlliance()
    • setAlliance

      public static void setAlliance(edu.wpi.first.wpilibj.DriverStation.Alliance alliance)
    • isBlue

      public static Boolean isBlue()
    • getIsDisabledMode

      public static boolean getIsDisabledMode()
    • setIsDisabledMode

      public static void setIsDisabledMode(boolean state)
    • isAutoLocked

      public static boolean isAutoLocked()
    • getInputManager

      public static InputManager getInputManager()
      Returns the framework's InputManager.
      Returns:
      InputManager belonging to the framework.
    • getOutputManager

      public static OutputManager getOutputManager()
      Returns the framework's OutputManager.
      Returns:
      OutputManager belonging to the framework.
    • getSubsystemManager

      public static SubsystemManager getSubsystemManager()
      Returns the framework's SubsystemManager.
      Returns:
      SubsystemManager belonging to the framework.
    • getAutoManager

      public static AutoManager getAutoManager()
      Returns the framework's AutoManager.
      Returns:
      AutoManager belonging to the framework.
    • getConfigManager

      public static ConfigManager getConfigManager()
      Returns the framework's ConfigManager.
      Returns:
      ConfigManager belonging to the framework.
    • createObject

      protected Object createObject(Class<?> p_class)
      Creates an object from a Class object.
      Parameters:
      p_class - Class to construct.
      Returns:
      Constructed class.
    • executeUpdate

      public void executeUpdate()
      Runs update function of all managers belonging to the framework.