public class Message
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
idFrom
The field represent the id of the sender ( it's the same id that the one
present in the 'ListLocalDomainAndLocalKernel' class because each vertex
is related to one local domain and kernel
|
protected int |
idTo
The field represent the id of the receiver ( it's the same id that the one
present in the 'ListLocalDomainAndLocalKernel' class because each vertex
is related to one local domain and kernel
|
protected Abstract_Atom |
messageContent
The content of the message is an Abstract_Atom ( represent a mathematical expression ).
|
| Constructor and Description |
|---|
Message()
The constructor initialize all the ArrayLists
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIdFrom()
This is the getter of the sender of the message
|
int |
getIdTo()
This is the getter of the receiver of the message
|
Abstract_Atom |
getMessageContent()
Return the content of the message which is an Abstract atom
|
void |
setIdFrom(int idFrom)
set the id of the sender when the message is created
|
void |
setIdTo(int idTo)
set the id of the receiver when the message is created
|
void |
setMessageContent(Abstract_Atom messageContent)
Put the content of the message when the sender and receiver have been sets
|
java.lang.String |
toString()
This method override the normal toString method in order to get a String
which represent all the informations present in the message
( all the Sum and other item multiply correctly ) in a String format.
|
java.lang.String |
toStringFull()
This method is the little brother of the previous toString method.
|
protected Abstract_Atom messageContent
protected int idFrom
protected int idTo
public int getIdFrom()
public void setIdFrom(int idFrom)
idFrom - id of the senderpublic int getIdTo()
public void setIdTo(int idTo)
idTo - id of the receiverpublic Abstract_Atom getMessageContent()
public void setMessageContent(Abstract_Atom messageContent)
messageContent - the Abstract_Atom which represent the messagepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringFull()