With current implementation, if the messages sent are of same type per superstep, you can also define a base class for defining the message class and the API. The messages sent and received could be derived classes. Off course this would involve some casting.
-Suraj On Sun, Apr 14, 2013 at 8:31 PM, Edward <[email protected]> wrote: > You can use MapWritable to send different type messages among processors. > > Sent from my iPhone > > On Apr 15, 2013, at 7:28 AM, Ηλίας Τριχόπουλος <[email protected]> > wrote: > > > Hello everyone, > > > > I am new in developing with Hama and generally with BSP model. > > The Vertex interface expects an argument "M" that defines the message > class. In my class that extends the Vertex class, I am using the > sendMessageToNeighboors method (inside the compute method). The > sendMessageToNeighboors method expects the same argument type as the Vertex > class for the message. During the computation (in different supersteps) I > want to be able to send different kind of messages. > > Is this somehow possible? > > > > Thank you, > > -- > > Ilias Trichopoulos > > @nop33wordpress > > <linkedin-button.png.opt45x45o0,0s45x45.png> > > >
