2010 FRC Java API


edu.wpi.first.wpilibj
Class Module

java.lang.Object
  extended by edu.wpi.first.wpilibj.SensorBase
      extended by edu.wpi.first.wpilibj.Module
Direct Known Subclasses:
AnalogModule, DigitalModule

public class Module
extends SensorBase

Base class for AnalogModule and DigitalModule.

Author:
dtjones

Field Summary
protected static Module[] m_modules
          An array holding the object representing each module
protected  int m_slot
          The slot that the module is in
 
Fields inherited from class edu.wpi.first.wpilibj.SensorBase
kAnalogChannels, kAnalogModules, kChassisSlots, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond
 
Constructor Summary
protected Module(int slot)
          Constructor.
 
Method Summary
 int getSlot()
          Gets the slot associated with a module.
 
Methods inherited from class edu.wpi.first.wpilibj.SensorBase
checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, free, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_modules

protected static Module[] m_modules
An array holding the object representing each module


m_slot

protected int m_slot
The slot that the module is in

Constructor Detail

Module

protected Module(int slot)
Constructor.

Parameters:
slot - The slot in the chassis where the module is plugged in.
Method Detail

getSlot

public int getSlot()
Gets the slot associated with a module.

Returns:
The module's slot.

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.