public abstract class Subsystem extends java.lang.Object implements NamedSendable
| Modifier and Type | Field and Description |
|---|---|
private Command |
m_currentCommand
The m_current command.
|
private boolean |
m_currentCommandChanged
The m_current command changed.
|
private Command |
m_defaultCommand
The m_default command.
|
private boolean |
m_initializedDefaultCommand
The m_initialized default command.
|
private java.lang.String |
m_name
The m_name.
|
private ITable |
m_table |
| Constructor and Description |
|---|
Subsystem()
Instantiates a new subsystem.
|
Subsystem(java.lang.String name)
Instantiates a new subsystem.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
confirmCommand()
Confirm command.
|
Command |
getCurrentCommand()
Gets the current command.
|
boolean |
getCurrentCommandNotInterruptable() |
protected Command |
getDefaultCommand()
Gets the default command.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
protected abstract void |
initDefaultCommand()
Inits the default command.
|
void |
initTable(ITable table) |
(package private) void |
iterationRun() |
(package private) void |
nullifyCurrentCommand() |
(package private) void |
setCurrentCommand(Command command)
Sets the current command.
|
protected void |
setDefaultCommand(Command command)
Sets the default command.
|
java.lang.String |
toString() |
private boolean m_initializedDefaultCommand
private Command m_currentCommand
private boolean m_currentCommandChanged
private Command m_defaultCommand
private final java.lang.String m_name
private ITable m_table
public Subsystem(java.lang.String name)
name - the namepublic Subsystem()
protected abstract void initDefaultCommand()
protected void setDefaultCommand(Command command)
command - the new default commandprotected Command getDefaultCommand()
void setCurrentCommand(Command command)
command - the new current commandvoid nullifyCurrentCommand()
void confirmCommand()
void iterationRun()
public Command getCurrentCommand()
public boolean getCurrentCommandNotInterruptable()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic java.lang.String getName()
getName in interface NamedSendable