Menu

Using Modules

AFME
2009-06-05
2013-03-03
  • David Saldaña

    David Saldaña - 2009-06-05

    Hello,

    Please, I have two questions:
    1. What's the advantage of using Modules or a Class with the singleton pattern for sharing objects between actuators and perceptors?

    2. I am programming an agent that recognices bluetooth networks but what is the best way for saving the DiscoveredDevices?

    Thank you.

    David

     
    • Conor

      Conor - 2009-06-06

      hi David,

      The use of modules is a necessity rather than an advantage. That is, in certain situations or applications, there needs to be some way of sharing objects between actuators and preceptors. This is facilitated in AFME through the use of modules. For other applications, this will not be a requirement and therefore modules need not be used.

      I have not done development with Bluetooth, but if you want to save information, you should use the record management store (RMS) functionality of MIDP. The RMS is used for persistent storage.

      best,
      Conor

       

Log in to post a comment.

Auth0 Logo