Class RemoteRequestEV3

  • All Implemented Interfaces:
    java.io.Serializable, Brick, EV3

    public class RemoteRequestEV3
    extends java.lang.Object
    implements EV3, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • RemoteRequestEV3

        public RemoteRequestEV3​(java.lang.String host)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getPort

        public Port getPort​(java.lang.String portName)
        Description copied from interface: Brick
        Return a port object for the request port name. This allows access to the hardware associated with the specified port.
        Specified by:
        getPort in interface Brick
        Parameters:
        portName - The name of port
        Returns:
        the request port
      • getPower

        public Power getPower()
        Description copied from interface: Brick
        return a battery object which can be used to obtain battery voltage etc.
        Specified by:
        getPower in interface Brick
        Returns:
        A battery object
      • getAudio

        public Audio getAudio()
        Description copied from interface: Brick
        return a Audio object which can be used to access the device's audio playback
        Specified by:
        getAudio in interface Brick
        Returns:
        A Audio device
      • getTextLCD

        public TextLCD getTextLCD()
        Description copied from interface: Brick
        Get text access to the LCD using the default font
        Specified by:
        getTextLCD in interface Brick
        Returns:
        the text LCD
      • getTextLCD

        public TextLCD getTextLCD​(Font f)
        Description copied from interface: Brick
        Get text access to the LCD using a specified font
        Specified by:
        getTextLCD in interface Brick
        Parameters:
        f - the font
        Returns:
        the text LCD
      • getGraphicsLCD

        public GraphicsLCD getGraphicsLCD()
        Description copied from interface: Brick
        Get graphics access to the LCD
        Specified by:
        getGraphicsLCD in interface Brick
        Returns:
        the graphics LCD
      • isLocal

        public boolean isLocal()
        Description copied from interface: Brick
        Test whether the brick is a local one
        Specified by:
        isLocal in interface Brick
        Returns:
        true iff brick is local
      • getType

        public java.lang.String getType()
        Description copied from interface: Brick
        Get the type of brick, e.g. "EV3", "NXT", "BrickPi"
        Specified by:
        getType in interface Brick
        Returns:
        the brick type
      • getName

        public java.lang.String getName()
        Description copied from interface: Brick
        Get he name of the brick
        Specified by:
        getName in interface Brick
        Returns:
        the name
      • getBluetoothDevice

        public LocalBTDevice getBluetoothDevice()
        Description copied from interface: Brick
        Get the local Bluetooth device
        Specified by:
        getBluetoothDevice in interface Brick
        Returns:
        the local Bluetooth device
      • getWifiDevice

        public LocalWifiDevice getWifiDevice()
        Description copied from interface: Brick
        Get the local Wifi device
        Specified by:
        getWifiDevice in interface Brick
        Returns:
        the local Wifi device
      • setDefault

        public void setDefault()
        Description copied from interface: Brick
        Set this brick as the default one for static methods
        Specified by:
        setDefault in interface Brick
      • getKeys

        public Keys getKeys()
        Description copied from interface: Brick
        Get access to the keys (buttons)
        Specified by:
        getKeys in interface Brick
        Returns:
        an implementation of the Keys interface
      • getKey

        public Key getKey​(java.lang.String name)
        Description copied from interface: Brick
        Get access to a specific Key (aka Button)
        Specified by:
        getKey in interface Brick
        Parameters:
        name - the key name
        Returns:
        an implementation of the Key interface
      • getLED

        public LED getLED()
        Description copied from interface: Brick
        Get access to the LED
        Specified by:
        getLED in interface Brick
        Returns:
        an implementation of the LED interface
      • 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()