org.demac.management
Interface RecruitOrder

All Known Subinterfaces:
ReceiverRecruitOrder, ReceiverRecruitOrderWithTime
All Known Implementing Classes:
ReceiverRecruitOrderImpl, ReceiverRecruitOrderWithTimeImpl, SenderRecruitOrderImpl

public interface RecruitOrder

This class is used to characterize the recruitment procedure. It describes how a specific request (e.g. status request) should be fulfilled.


Method Summary
 int getRecruitcount()
          This method is used to get the the amount of recruits a sender should recruit if the receiver was not found.
 int getRecruitdepth()
          This method is used to get the the depth of recruitment, which determines whether the corresponding sender should recruit recruits or not.
 int getSendtrials()
          This method is used to get the amount of trials the sender tries to submit a request or respectively a result.
 long getWaittime()
          This method returns the time in milliseconds a sender waits between two sending trials.
 void setRecruitcount(int recruitCount)
          This method is used to set the amount of recruits a sender should recruit if the receiver was not found.
 void setRecruitdepth(int recruitDepth)
          This method is used to set the maximum depth of the recruitment, which determines if recruits should recruit themselves and until which depth this procedure should be done if the receiver was not found.
 void setSendtrials(int sendTrials)
          This method is used to set the amount of trials a sender tries to find the receiver.
 void setWaittime(long waitTime)
          This method is used to set the time a sender waits between two sending trials.
 

Method Detail

getSendtrials

int getSendtrials()
This method is used to get the amount of trials the sender tries to submit a request or respectively a result.

Returns:
the amount of sending trials

getWaittime

long getWaittime()
This method returns the time in milliseconds a sender waits between two sending trials.

Returns:
the waiting time in milliseconds

getRecruitcount

int getRecruitcount()
This method is used to get the the amount of recruits a sender should recruit if the receiver was not found.

Returns:
the amount of recruits

getRecruitdepth

int getRecruitdepth()
This method is used to get the the depth of recruitment, which determines whether the corresponding sender should recruit recruits or not. The depth should be decremented after every recruitment procedure. A depth of two for example means that the recruits of the sender should recruit themselves if they don't find the corresponding receiver.

Returns:

setSendtrials

void setSendtrials(int sendTrials)
This method is used to set the amount of trials a sender tries to find the receiver.

Parameters:
sendTrials - the amount of trials.

setWaittime

void setWaittime(long waitTime)
This method is used to set the time a sender waits between two sending trials.

Parameters:
sendTrials - the wait time in milliseconds.

setRecruitcount

void setRecruitcount(int recruitCount)
This method is used to set the amount of recruits a sender should recruit if the receiver was not found.

Parameters:
recruitCount - the amount of recruits.

setRecruitdepth

void setRecruitdepth(int recruitDepth)
This method is used to set the maximum depth of the recruitment, which determines if recruits should recruit themselves and until which depth this procedure should be done if the receiver was not found.

Parameters:
recruitDepth - the depth of the recruitment.