Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.squawk.peripheral
Class PeripheralRegistry

    java.lang.Object
      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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

"
For updated information see the Java FRC site
"