org.iids.aos.agents
Class FishMessage

java.lang.Object
  extended by org.iids.aos.agents.FishMessage

public class FishMessage
extends java.lang.Object

Messages send between a Fish and a FishTank. Message Types: - LOAD : load fish image in the FishTank - REDRAW: coordinates where to draw the fish (2 integers) - REMOVE: <> empty message, remove fish from FishTank Each message contains the AgentHandle that sent the message.

Author:
Michel Oey

Nested Class Summary
static class FishMessage.Type
           
 
Constructor Summary
FishMessage(byte[] message)
           
FishMessage(byte[] data, AgentHandle fromHandle, FishMessage.Type type)
           
 
Method Summary
 byte[] getData()
           
 AgentHandle getFromHandle()
           
 FishMessage.Type getType()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FishMessage

public FishMessage(byte[] data,
                   AgentHandle fromHandle,
                   FishMessage.Type type)

FishMessage

public FishMessage(byte[] message)
Method Detail

toByteArray

public byte[] toByteArray()

getData

public byte[] getData()

getFromHandle

public AgentHandle getFromHandle()

getType

public FishMessage.Type getType()


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.