edu.wpi.first.wpilibj.communication
Class ModulePresence

java.lang.Object
  extended by edu.wpi.first.wpilibj.communication.ModulePresence

public class ModulePresence
extends java.lang.Object

Class to check whether an emulated module is present.

Author:
wolf

Nested Class Summary
static class ModulePresence.ModuleType
           
 
Field Summary
static int kMaxModuleNumber
           
 
Constructor Summary
ModulePresence()
           
 
Method Summary
static boolean getModulePresence(ModulePresence.ModuleType moduleType, int moduleNumber)
          Determines whether the module of the given type and number is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kMaxModuleNumber

public static final int kMaxModuleNumber
See Also:
Constant Field Values
Constructor Detail

ModulePresence

public ModulePresence()
Method Detail

getModulePresence

public static boolean getModulePresence(ModulePresence.ModuleType moduleType,
                                        int moduleNumber)
Determines whether the module of the given type and number is present.

Parameters:
moduleType - The type of the module to be check.
moduleNumber - The ID for this type of module to check (usually 0 or 1).
Returns:
Whether the given module is present.
Todo:
verify that this actually works how it does on the real robot, the javadoc is somewhat ambiguous