BowlerKernel
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice Class Reference
Inheritance diagram for com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice:
Collaboration graph
[legend]

Public Member Functions

 BowlerJInputDevice (String... names)
 
 BowlerJInputDevice (List< String > searches)
 
void disconnectDeviceImp ()
 
double getValue (String component)
 
boolean connectDeviceImp ()
 
String getControllerName ()
 
void setController (Controller controller)
 
void removeListeners (IGameControlEvent l)
 
void clearListeners ()
 
void addListeners (IGameControlEvent l)
 
ArrayList< String > getNamespacesImp ()
 
String toString ()
 
String getMaps ()
 
void map (String controllerVal, String persistantVal)
 
String getName ()
 
void setName (String name)
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.NonBowlerDevice
boolean connect ()
 
boolean isAvailable () throws InvalidConnectionException
 
void disconnect ()
 
void onAsyncResponse (BowlerDatagram data)
 
ArrayList< String > getNamespaces ()
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void addConnectionEventListener (final IDeviceConnectionEventListener l)
 
void removeConnectionEventListener (IDeviceConnectionEventListener l)
 
void setConnection (BowlerAbstractConnection connection)
 
BowlerAbstractConnection getConnection ()
 
void setAddress (MACAddress address)
 
MACAddress getAddress ()
 
BowlerDatagram send (BowlerAbstractCommand command) throws NoConnectionAvailableException, InvalidResponseException
 
BowlerDatagram send (BowlerAbstractCommand command, int retry) throws NoConnectionAvailableException, InvalidResponseException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments) throws DeviceConnectionException
 
boolean ping ()
 
boolean ping (boolean switchParser)
 
ArrayList< ByteListgetRevisions ()
 
boolean hasNamespace (String string)
 
void startHeartBeat ()
 
void startHeartBeat (long msHeartBeatTime)
 
void stopHeartBeat ()
 
void setThreadedUpstreamPackets (boolean up)
 
ArrayList< RpcEncapsulationgetRpcList (String namespace)
 
void loadRpcList ()
 
void onAllResponse (BowlerDatagram data)
 
boolean isKeepAlive ()
 
void setKeepAlive (boolean keepAlive)
 
long getLastPacketTime ()
 
void setLastPacketTime (long lastPacketTime)
 
String getScriptingName ()
 
void setScriptingName (String scriptingName)
 
ArrayList< IDeviceConnectionEventListenergetDisconnectListeners ()
 

Static Public Member Functions

static ArrayList< String > getControllers ()
 
static void main (String[] args) throws InterruptedException
 

Private Member Functions

void setControllerByName (List< String > names)
 

Static Private Member Functions

static ArrayList< Controller > controllers ()
 

Private Attributes

Controller controller
 
ArrayList< IGameControlEventlisteners = new ArrayList<IGameControlEvent>()
 
HashMap< String, Double > recentValue = new HashMap<String, Double>()
 
Thread poller
 
String name
 
List< String > searches
 

Additional Inherited Members

- Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void fireDisconnectEvent ()
 
void fireConnectEvent ()
 

Detailed Description

The Class BowlerJInputDevice.

Definition at line 24 of file BowlerJInputDevice.java.

Constructor & Destructor Documentation

◆ BowlerJInputDevice() [1/2]

com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.BowlerJInputDevice ( String...  names)

Instantiates a new bowler j input device.

Definition at line 76 of file BowlerJInputDevice.java.

References com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.setControllerByName().

Referenced by com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.main().

Here is the call graph for this function:

◆ BowlerJInputDevice() [2/2]

com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.BowlerJInputDevice ( List< String >  searches)

Member Function Documentation

◆ addListeners()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.addListeners ( IGameControlEvent  l)

◆ clearListeners()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.clearListeners ( )

Removes all the listeners.

Definition at line 264 of file BowlerJInputDevice.java.

◆ connectDeviceImp()

boolean com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.connectDeviceImp ( )

◆ controllers()

static ArrayList<Controller> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.controllers ( )
staticprivate

◆ disconnectDeviceImp()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.disconnectDeviceImp ( )

This method tells the connection object to disconnect its pipes and close out the connection. Once this is called, it is safe to remove your device.

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 117 of file BowlerJInputDevice.java.

References com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.listeners, and com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.poller.

◆ getControllerName()

String com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getControllerName ( )

Gets the controller.

Returns
the controller

Definition at line 225 of file BowlerJInputDevice.java.

References com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.controller.

◆ getControllers()

static ArrayList<String> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getControllers ( )
static

◆ getMaps()

String com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getMaps ( )

◆ getName()

String com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getName ( )

◆ getNamespacesImp()

ArrayList<String> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getNamespacesImp ( )

Gets the namespaces imp.

Returns
the namespaces imp

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 284 of file BowlerJInputDevice.java.

◆ getValue()

double com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.getValue ( String  component)

◆ main()

static void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.main ( String[]  args) throws InterruptedException
static

◆ map()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.map ( String  controllerVal,
String  persistantVal 
)

◆ removeListeners()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.removeListeners ( IGameControlEvent  l)

Removes the listeners.

Parameters
lthe l

Definition at line 255 of file BowlerJInputDevice.java.

References com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.listeners.

◆ setController()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.setController ( Controller  controller)

◆ setControllerByName()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.setControllerByName ( List< String >  names)
private

◆ setName()

void com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.setName ( String  name)

◆ toString()

String com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.toString ( )

Member Data Documentation

◆ controller

Controller com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.controller
private

◆ listeners

ArrayList<IGameControlEvent> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.listeners = new ArrayList<IGameControlEvent>()
private

◆ name

String com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.name
private

◆ poller

Thread com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.poller
private

◆ recentValue

HashMap<String, Double> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.recentValue = new HashMap<String, Double>()
private

◆ searches

List<String> com.neuronrobotics.sdk.addons.gamepad.BowlerJInputDevice.searches
private

The documentation for this class was generated from the following file: