Package lejos.remote.ev3
Class RMIRemoteKey
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- lejos.remote.ev3.RMIRemoteKey
-
- All Implemented Interfaces:
java.io.Serializable,java.rmi.Remote,RMIKey
public class RMIRemoteKey extends java.rmi.server.UnicastRemoteObject implements RMIKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRMIRemoteKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyListener(KeyListener listener)intgetId()booleanisDown()booleanisUp()voidsetId(java.lang.String name)voidsimulateEvent(int event)voidwaitForPress()voidwaitForPressAndRelease()-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Method Detail
-
getId
public int getId() throws java.rmi.RemoteException
-
isDown
public boolean isDown() throws java.rmi.RemoteException
-
isUp
public boolean isUp() throws java.rmi.RemoteException
-
waitForPress
public void waitForPress() throws java.rmi.RemoteException- Specified by:
waitForPressin interfaceRMIKey- Throws:
java.rmi.RemoteException
-
waitForPressAndRelease
public void waitForPressAndRelease() throws java.rmi.RemoteException- Specified by:
waitForPressAndReleasein interfaceRMIKey- Throws:
java.rmi.RemoteException
-
addKeyListener
public void addKeyListener(KeyListener listener) throws java.rmi.RemoteException
- Specified by:
addKeyListenerin interfaceRMIKey- Throws:
java.rmi.RemoteException
-
simulateEvent
public void simulateEvent(int event) throws java.rmi.RemoteException- Specified by:
simulateEventin interfaceRMIKey- Throws:
java.rmi.RemoteException
-
setId
public void setId(java.lang.String name)
-
-