Package lejos.remote.ev3
Class RemoteRequestEV3
- java.lang.Object
-
- lejos.remote.ev3.RemoteRequestEV3
-
public class RemoteRequestEV3 extends java.lang.Object implements EV3, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteRequestEV3(java.lang.String host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArcRotateMoveControllercreatePilot(double wheelDiameter, double trackWidth, java.lang.String leftMotor, java.lang.String rightMotor)RegulatedMotorcreateRegulatedMotor(java.lang.String portName, char motorType)SampleProvidercreateSampleProvider(java.lang.String portName, java.lang.String sensorName, java.lang.String modeName)SampleProvidercreateSampleProvider(java.lang.String portName, java.lang.String sensorName, java.lang.String modeName, java.lang.String topic, float frequency)voiddisConnect()AudiogetAudio()return a Audio object which can be used to access the device's audio playbackLocalBTDevicegetBluetoothDevice()Get the local Bluetooth deviceGraphicsLCDgetGraphicsLCD()Get graphics access to the LCDKeygetKey(java.lang.String name)Get access to a specific Key (aka Button)KeysgetKeys()Get access to the keys (buttons)LEDgetLED()Get access to the LEDjava.lang.StringgetName()Get he name of the brickPortgetPort(java.lang.String portName)Return a port object for the request port name.PowergetPower()return a battery object which can be used to obtain battery voltage etc.TextLCDgetTextLCD()Get text access to the LCD using the default fontTextLCDgetTextLCD(Font f)Get text access to the LCD using a specified fontjava.lang.StringgetType()Get the type of brick, e.g.VideogetVideo()LocalWifiDevicegetWifiDevice()Get the local Wifi devicebooleanisLocal()Test whether the brick is a local onevoidsetDefault()Set this brick as the default one for static methods
-
-
-
Method Detail
-
getPort
public Port getPort(java.lang.String portName)
Description copied from interface:BrickReturn a port object for the request port name. This allows access to the hardware associated with the specified port.
-
getPower
public Power getPower()
Description copied from interface:Brickreturn a battery object which can be used to obtain battery voltage etc.
-
getAudio
public Audio getAudio()
Description copied from interface:Brickreturn a Audio object which can be used to access the device's audio playback
-
getTextLCD
public TextLCD getTextLCD()
Description copied from interface:BrickGet text access to the LCD using the default font- Specified by:
getTextLCDin interfaceBrick- Returns:
- the text LCD
-
getTextLCD
public TextLCD getTextLCD(Font f)
Description copied from interface:BrickGet text access to the LCD using a specified font- Specified by:
getTextLCDin interfaceBrick- Parameters:
f- the font- Returns:
- the text LCD
-
getGraphicsLCD
public GraphicsLCD getGraphicsLCD()
Description copied from interface:BrickGet graphics access to the LCD- Specified by:
getGraphicsLCDin interfaceBrick- Returns:
- the graphics LCD
-
isLocal
public boolean isLocal()
Description copied from interface:BrickTest whether the brick is a local one
-
getType
public java.lang.String getType()
Description copied from interface:BrickGet the type of brick, e.g. "EV3", "NXT", "BrickPi"
-
getName
public java.lang.String getName()
Description copied from interface:BrickGet he name of the brick
-
getBluetoothDevice
public LocalBTDevice getBluetoothDevice()
Description copied from interface:BrickGet the local Bluetooth device- Specified by:
getBluetoothDevicein interfaceBrick- Returns:
- the local Bluetooth device
-
getWifiDevice
public LocalWifiDevice getWifiDevice()
Description copied from interface:BrickGet the local Wifi device- Specified by:
getWifiDevicein interfaceBrick- Returns:
- the local Wifi device
-
setDefault
public void setDefault()
Description copied from interface:BrickSet this brick as the default one for static methods- Specified by:
setDefaultin interfaceBrick
-
getKeys
public Keys getKeys()
Description copied from interface:BrickGet access to the keys (buttons)
-
getKey
public Key getKey(java.lang.String name)
Description copied from interface:BrickGet access to a specific Key (aka Button)
-
createSampleProvider
public SampleProvider createSampleProvider(java.lang.String portName, java.lang.String sensorName, java.lang.String modeName)
-
createSampleProvider
public SampleProvider createSampleProvider(java.lang.String portName, java.lang.String sensorName, java.lang.String modeName, java.lang.String topic, float frequency) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
createRegulatedMotor
public RegulatedMotor createRegulatedMotor(java.lang.String portName, char motorType)
-
createPilot
public ArcRotateMoveController createPilot(double wheelDiameter, double trackWidth, java.lang.String leftMotor, java.lang.String rightMotor)
-
disConnect
public void disConnect()
-
-