Confusion about those different but similar Remote/RMI names

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Confusion about those different but similar Remote/RMI names

Postby pipedream » Tue Aug 12, 2014 6:03 am

Hello,

I was wondering about what's the difference between all those RMI/Remote class names? For example, the method

createRegulatedMotor(String, char) - Method in class lejos.remote.ev3.RemoteEV3
createRegulatedMotor(String, char) - Method in interface lejos.remote.ev3.RMIEV3
createRegulatedMotor(String, char) - Method in class lejos.remote.ev3.RMIRemoteEV3

shows up in three different places. What's the difference among them? What's the case to use each of them? Which one is more preferred?

Thanks!
pipedream
New User
 
Posts: 9
Joined: Sat Aug 02, 2014 7:46 pm

Re: Confusion about those different but similar Remote/RMI n

Postby lawrie » Tue Aug 12, 2014 6:41 pm

You should use the method in RemoteEV3 - that is the client implementation. All RMI methods need an interface - that is why RMIEV3 exists. RMIRemoteEV3 is the server implementation of the method, included in EV3Menu.
lawrie
leJOS Team Member
 
Posts: 922
Joined: Mon Feb 05, 2007 1:27 pm


Return to EV3 Software

Who is online

Users browsing this forum: Google [Bot] and 4 guests

more stuff