Package org.wildstang.framework.core
Class Core
- java.lang.Object
-
- org.wildstang.framework.core.Core
-
public class Core extends java.lang.ObjectCore of robot framework.
-
-
Constructor Summary
Constructors Constructor Description Core(java.lang.Class<?> p_inputFactoryClass, java.lang.Class<?> p_outputFactoryClass)Constructor collects I/O factory and initialized framework components.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAutoPrograms(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 java.lang.ObjectcreateObject(java.lang.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.voidexecuteUpdate()Runs update function of all managers belonging to the framework.static AutoManagergetAutoManager()Returns the framework's AutoManager.static ConfigManagergetConfigManager()Returns the framework's ConfigManager.static InputManagergetInputManager()Returns the framework's InputManager.static OutputManagergetOutputManager()Returns the framework's OutputManager.static SubsystemManagergetSubsystemManager()Returns the framework's SubsystemManager.
-
-
-
Method Detail
-
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.
-
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 java.lang.Object createObject(java.lang.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.
-
-