FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.controller.messages.MessageAgentReporting Class Reference
Inheritance diagram for frodo2.controller.messages.MessageAgentReporting:

Public Member Functions

 MessageAgentReporting (MessageType type, String ID, AgentAddress address)
 A constructor.
 MessageAgentReporting ()
 Empty constructor used for externalization.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String getID ()
 get the ID of the agent
AgentAddress getAddress ()
 get the IP of the agent
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
String toString ()
void fakeSerialize ()
 Pretends to serialize the message.

Static Public Attributes

static final MessageType AGENT_REPORTING = MessageType.SYSTEM.newChild("MessageAgentReporting", "Agent-Reporting")
 The type of the message used by an agent to report to the white pages.
static final MessageType DEAMON_REPORTING = MessageType.SYSTEM.newChild("MessageAgentReporting", "Daemon-Reporting")
 The type of the message used by an daemon to report to the white pages.

Private Attributes

String ID
 The ID of the agent.
AgentAddress address
 The address of the agent.

Additional Inherited Members

Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Detailed Description

Author
brammertottens

This message contains three strings

Constructor & Destructor Documentation

◆ MessageAgentReporting() [1/2]

frodo2.controller.messages.MessageAgentReporting.MessageAgentReporting ( MessageType type,
String ID,
AgentAddress address )

A constructor.

Parameters
typethe message type
IDthe ID of the agent
addressthe address of the agent

References address, ID, and frodo2.communication.Message.type.

◆ MessageAgentReporting() [2/2]

frodo2.controller.messages.MessageAgentReporting.MessageAgentReporting ( )

Empty constructor used for externalization.

Member Function Documentation

◆ getAddress()

AgentAddress frodo2.controller.messages.MessageAgentReporting.getAddress ( )

get the IP of the agent

Returns
IP

References address.

◆ getID()

String frodo2.controller.messages.MessageAgentReporting.getID ( )

get the ID of the agent

Returns
ID

References ID.

◆ readExternal()

void frodo2.controller.messages.MessageAgentReporting.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
Message.readExternal(java.io.ObjectInput)

Reimplemented from frodo2.communication.Message.

◆ writeExternal()

void frodo2.controller.messages.MessageAgentReporting.writeExternal ( ObjectOutput out) throws IOException
See also
Message.writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.communication.Message.

Member Data Documentation

◆ address

AgentAddress frodo2.controller.messages.MessageAgentReporting.address
private

The address of the agent.

Referenced by getAddress(), and MessageAgentReporting().

◆ AGENT_REPORTING

final MessageType frodo2.controller.messages.MessageAgentReporting.AGENT_REPORTING = MessageType.SYSTEM.newChild("MessageAgentReporting", "Agent-Reporting")
static

◆ DEAMON_REPORTING

final MessageType frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING = MessageType.SYSTEM.newChild("MessageAgentReporting", "Daemon-Reporting")
static

◆ ID

String frodo2.controller.messages.MessageAgentReporting.ID
private

The ID of the agent.

Referenced by getID(), and MessageAgentReporting().


The documentation for this class was generated from the following file: