All Packages Class Hierarchy This Package Previous Next Index
Class orchid.agent.MeetingAgent
java.lang.Object
|
+----orchid.agent.MeetingAgent
- public class MeetingAgent
- extends Object
- implements IMeetingAgent, IMobile, IMobility, Serializable
The MeetingAgent class.
To generate the interface : $ igen -v -d . orchid.agent.MeetingAgent.
If something goes wrong, IMobility has to be DE-implemented since
there may be a bug in this Interface.
If so, swap the 2 lines of declaration of the class and comment the 2 moveTo methods.
- Author:
- Marc-Aurèle DARCHE & Antoine SOULIEZ
-
MeetingAgent(UserInfo)
- MeetingAgent constructor
-
callMeeting(MeetingProposal)
- Make the Initiator Agent send the MeetingProposal to all the meeting guests' agents.
Method used by the Initiator Agent.
-
confirmMeeting(MeetingProposal)
- Make the agent confirm the final DateHourProposal to all the agents of one subgroup.
This is the LAST METHOD to be used.
Agent to Agent Method.
Method called by the nMCP agent.
-
finalize()
-
-
getCurrentlocation()
- Make the agent return the name of the server on which it is running .
-
getHome()
- Make the agent return the name of the server on which it was created.
Agent to Agent Method.
-
getMeetings(Date, Date)
- Make the agent send the schedule to its client owner.
Client to Agent Method.
-
getOwner()
- Make the agent return the name of its owner.
Agent to Agent Method.
-
giveResult(String, RangeProposal)
- Make the agent give its RangeProposal to the initiator agent.
To perform this action the agent has to be the nMCP.
Agent to Agent Method.
-
giveYouMyCF(String, int, String)
- Make the agent store the Constraint Factor (CF) of an agent's user.
-
goHome()
- Make the agent go to its home server.
Agent to Agent Method.
-
isEverybodyAnswered(String)
- Test if everybody answered to the MeetingProposal.
-
moveTo(Object)
-
-
moveTo(String)
-
-
newMeeting(MeetingProposal)
- Make the Agent store the MeetingProposal and ask its user if it will come or not to the Meeting.
In the next step, the Agent will have to use the its willComeOrNot method
to transfer the answer to the Initiator Agent.
Agent to Agent Method.
Method called by the Initiator Agent callMeeting method.
-
newProposal(String, DateHourProposal)
- Make the agent send a new DateHourProposal to the next most constrained participant's agent.
Agent to Agent Method.
-
nextProposal(String)
- Agent to Agent Method.
-
noMoreProposal(String)
- Agent to Agent Method.
-
postArrival()
-
-
postDeparture()
-
-
preArrival()
-
-
preDeparture(String, String)
-
-
print(String)
- Make the agent display a string at its current location.
For test/debug purpose.
-
startGivingCF(String)
-
-
updateMeeting(MeetingProposal)
- Make the agents of the participants update their meetingProposalList.
Agent to Agent Method.
Method called by the Initiator Agent.
-
willComeOrNot(String, String, boolean)
- Make the agent answer if it will come or not to a meeting.
Agent to Agent Method.
MeetingAgent
public MeetingAgent(UserInfo u)
- MeetingAgent constructor
finalize
public void finalize()
- Overrides:
- finalize in class Object
preDeparture
public void preDeparture(String source,
String destination)
preArrival
public void preArrival()
postArrival
public void postArrival()
postDeparture
public void postDeparture()
moveTo
public void moveTo(Object obj)
moveTo
public void moveTo(String url)
getMeetings
public Vector getMeetings(Date beginning,
Date end)
- Make the agent send the schedule to its client owner.
Client to Agent Method.
callMeeting
public void callMeeting(MeetingProposal mp)
- Make the Initiator Agent send the MeetingProposal to all the meeting guests' agents.
Method used by the Initiator Agent.
newMeeting
public void newMeeting(MeetingProposal mp)
- Make the Agent store the MeetingProposal and ask its user if it will come or not to the Meeting.
In the next step, the Agent will have to use the its willComeOrNot method
to transfer the answer to the Initiator Agent.
Agent to Agent Method.
Method called by the Initiator Agent callMeeting method.
willComeOrNot
public void willComeOrNot(String meetingProposalKey,
String userName,
boolean answer)
- Make the agent answer if it will come or not to a meeting.
Agent to Agent Method.
updateMeeting
public void updateMeeting(MeetingProposal mp)
- Make the agents of the participants update their meetingProposalList.
Agent to Agent Method.
Method called by the Initiator Agent.
startGivingCF
public void startGivingCF(String meetingProposalKey)
giveYouMyCF
public void giveYouMyCF(String meetingProposalKey,
int CF,
String username)
- Make the agent store the Constraint Factor (CF) of an agent's user.
newProposal
public synchronized void newProposal(String meetingProposalKey,
DateHourProposal dhp)
- Make the agent send a new DateHourProposal to the next most constrained participant's agent.
Agent to Agent Method.
nextProposal
public synchronized void nextProposal(String meetingProposalKey)
- Agent to Agent Method.
noMoreProposal
public synchronized void noMoreProposal(String meetingProposalKey)
- Agent to Agent Method.
goHome
public void goHome()
- Make the agent go to its home server.
Agent to Agent Method.
giveResult
public void giveResult(String meetingProposalKey,
RangeProposal rp)
- Make the agent give its RangeProposal to the initiator agent.
To perform this action the agent has to be the nMCP.
Agent to Agent Method.
Method called onto the Initiator Agent.
confirmMeeting
public void confirmMeeting(MeetingProposal mp)
- Make the agent confirm the final DateHourProposal to all the agents of one subgroup.
This is the LAST METHOD to be used.
Agent to Agent Method.
Method called by the nMCP agent.
getHome
public String getHome()
- Make the agent return the name of the server on which it was created.
Agent to Agent Method.
getCurrentlocation
public String getCurrentlocation()
- Make the agent return the name of the server on which it is running .
getOwner
public String getOwner()
- Make the agent return the name of its owner.
Agent to Agent Method.
print
public void print(String str)
- Make the agent display a string at its current location.
For test/debug purpose.
isEverybodyAnswered
public boolean isEverybodyAnswered(String meetkey)
- Test if everybody answered to the MeetingProposal.
All Packages Class Hierarchy This Package Previous Next Index