"

2013 FRC Java API

"

com.sun.squawk.peripheral
Class PeripheralRegistry

java.lang.Object
  extended by com.sun.squawk.peripheral.PeripheralRegistry

public class PeripheralRegistry
extends Object

Place holder for all peripheral types known by Squawk.


Field Summary
protected  SquawkHashtable peripheralArraysByType
           
protected  SquawkVector registeredPeripherals
           
 
Constructor Summary
PeripheralRegistry()
           
 
Method Summary
 void add(IPeripheral peripheral)
           
 IPeripheral[] getAll(Class type)
          Return all peripherals of type type.
 IPeripheral getSingleton(Class type)
           
 void removeAll(Class type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registeredPeripherals

protected SquawkVector registeredPeripherals

peripheralArraysByType

protected SquawkHashtable peripheralArraysByType
Constructor Detail

PeripheralRegistry

public PeripheralRegistry()
Method Detail

add

public void add(IPeripheral peripheral)

getSingleton

public IPeripheral getSingleton(Class type)

getAll

public IPeripheral[] getAll(Class type)
Return all peripherals of type type.

Parameters:
type -
Returns:
array of peripherals

removeAll

public void removeAll(Class type)

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"