Shop OBEX P1 Docs P2 Docs Learn Events
Calling methods on the Javelin — Parallax Forums

Calling methods on the Javelin

vladvlad Posts: 4
edited 2005-09-20 13:42 in General Discussion
How can I call methods on the javelin from outside, using a serialport·connection? My connection works, but I do not know any good way of calling the different methods on my stamp. I suppose that java doesn't have reflection...

Comments

  • bxgirtenbxgirten Posts: 79
    edited 2005-09-19 23:10
    Are you talking about something like Remote Method Invocation (RMI)?
  • vladvlad Posts: 4
    edited 2005-09-20 10:51
    Yes, something like rmi would be nice. Any suggestions?
  • bxgirtenbxgirten Posts: 79
    edited 2005-09-20 13:42
    For strictly RMI, Javelin does not come with rmic. So there is no way to generate the skeleton, stubs, etc. Remember that the Javelin comes with a subset of Java. For example, while an Interface will compile, the JVM doesn't support it.

    As far as calling methods remotely, I suppose you could use the UART and build some logic that would interpret incoming signals that would trigger a method but you would probably be limited with your method signature. I'm not sure how you would tell the method about the type/value of the argument(s) passed to it.
Sign In or Register to comment.