"

2013 FRC Java API

"

edu.wpi.first.wpilibj.communication
Class ModulePresence

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

public class ModulePresence
extends Object

Class for communicating with the NetworkCommunication library routines which check module presence.

Author:
pmalmsten

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
equals, 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. This method calls the appropriate C function within the NetworkCommunication library in order to get the answer.

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.

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"