public class SubsystemFactory
extends java.lang.Object
Here is an example of how to access a subsystem: Drive drive = SubsystemFactory.getSubsystemFactory().getDrive();
Change Log:
Modifier and Type | Field and Description |
---|---|
private AimShooter |
m_aimShooter |
private Arm |
m_arm |
private Drive |
m_drive |
private static SubsystemFactory |
m_factory |
private PunchingServo |
m_servo |
private Shift |
m_shifter |
private Shooter |
m_shooter |
Modifier | Constructor and Description |
---|---|
private |
SubsystemFactory()
Creator -- can not be called by you!!!
|
Modifier and Type | Method and Description |
---|---|
AimShooter |
getAimShooter()
Call this method to get the aiming subsystem object
|
Arm |
getArm()
Call this method to get the arm subsystem object
|
Drive |
getDrive()
Call this method to get the drive subsystem object
|
PunchingServo |
getPunchingServo()
Call this method to get the punch servo subsystem object
|
Shift |
getShifter() |
Shooter |
getShooter()
Call this method to get the shooter subsystem object
|
static SubsystemFactory |
getSubsystemFactory()
This is used to get the subsystem factory so that you can get the subsystem you need.
|
private Drive m_drive
private Shooter m_shooter
private AimShooter m_aimShooter
private Arm m_arm
private PunchingServo m_servo
private Shift m_shifter
private static SubsystemFactory m_factory
private SubsystemFactory()
public static SubsystemFactory getSubsystemFactory()
public Drive getDrive()
public Shooter getShooter()
public AimShooter getAimShooter()
public Arm getArm()
public PunchingServo getPunchingServo()
public Shift getShifter()