Package org.wildstang.framework.core
Class Core
java.lang.Object
org.wildstang.framework.core.Core
Core of robot framework.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAutoPrograms(AutoPrograms[] p_programs) Takes an array of enumerations of AutoPrograms and build an AutoProgram of each.voidcreateInputs(Inputs[] p_inputs) Uses RoboRIOInputFactory to take an array of enumerations of Inputs and build an Input of each.protected ObjectcreateObject(Class<?> p_class) Creates an object from a Class object.voidcreateOutputs(Outputs[] p_outputs) Uses RoboRIOOutputFactory to take an array of enumerations of Outputs and build an Output of each.voidcreateSubsystems(Subsystems[] p_subsystems) Takes an array of enumerations of Subsystems and build a Subsystem of each.voidRuns update function of all managers belonging to the framework.static edu.wpi.first.wpilibj.DriverStation.Alliancestatic AutoManagerReturns the framework's AutoManager.static ConfigManagerReturns the framework's ConfigManager.static InputManagerReturns the framework's InputManager.static booleanstatic OutputManagerReturns the framework's OutputManager.static SubsystemManagerReturns the framework's SubsystemManager.static booleanstatic BooleanisBlue()static voidsetAlliance(edu.wpi.first.wpilibj.DriverStation.Alliance alliance) static voidsetIsDisabledMode(boolean state)
-
Constructor Details
-
Core
Constructor collects I/O factory and initialized framework components.- Parameters:
p_inputFactoryClass- InputFactory Classp_outputFactoryClass- OutputFactory Class
-
-
Method Details
-
createOutputs
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
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
Takes an array of enumerations of Subsystems and build a Subsystem of each.- Parameters:
p_subsystems- All enumerations of Subsystems to be created.
-
createAutoPrograms
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
-
getIsDisabledMode
public static boolean getIsDisabledMode() -
setIsDisabledMode
public static void setIsDisabledMode(boolean state) -
isAutoLocked
public static boolean isAutoLocked() -
getInputManager
Returns the framework's InputManager.- Returns:
- InputManager belonging to the framework.
-
getOutputManager
Returns the framework's OutputManager.- Returns:
- OutputManager belonging to the framework.
-
getSubsystemManager
Returns the framework's SubsystemManager.- Returns:
- SubsystemManager belonging to the framework.
-
getAutoManager
Returns the framework's AutoManager.- Returns:
- AutoManager belonging to the framework.
-
getConfigManager
Returns the framework's ConfigManager.- Returns:
- ConfigManager belonging to the framework.
-
createObject
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.
-