public static class BatchModeRequestHandler.IndexedProposal extends Object implements Comparator<BatchModeRequestHandler.IndexedProposal>, Comparable<BatchModeRequestHandler.IndexedProposal>
| Constructor and Description |
|---|
BatchModeRequestHandler.IndexedProposal(int id,
Request.Proposal proposal,
Request request,
List<BatchModeRequestHandler.IndexedProposal> proposalGroup,
double submissionTime)
Create a new indexed proposal
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BatchModeRequestHandler.IndexedProposal ip1,
BatchModeRequestHandler.IndexedProposal ip2)
Compare two indexed proposals
|
int |
compareTo(BatchModeRequestHandler.IndexedProposal ip)
Compare this indexed proposal with a given indexed proposal
|
boolean |
equals(BatchModeRequestHandler.IndexedProposal ip)
Whether or not this indexed proposal is equal to the given indexed
proposal.
|
Request.Proposal |
getProposal()
Get the proposal.
|
List<BatchModeRequestHandler.IndexedProposal> |
getProposalGroup()
Get the reference to the group of proposals of the request message in
to which the proposal belongs.
|
Request |
getRequest()
Get the request message of this proposal.
|
double |
getSubmissionTime()
Get the submission time of the request.
|
String |
toString()
Get the description of this batch policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic BatchModeRequestHandler.IndexedProposal(int id,
Request.Proposal proposal,
Request request,
List<BatchModeRequestHandler.IndexedProposal> proposalGroup,
double submissionTime)
id - the ID of this request policyproposal - a proposalrequest - the request message of the proposalproposalGroup - a reference to the group of proposals of a request
messagesubmissionTime - the submission timepublic Request.Proposal getProposal()
public Request getRequest()
public List<BatchModeRequestHandler.IndexedProposal> getProposalGroup()
public double getSubmissionTime()
public boolean equals(BatchModeRequestHandler.IndexedProposal ip)
ip - an indexed proposalpublic int compare(BatchModeRequestHandler.IndexedProposal ip1, BatchModeRequestHandler.IndexedProposal ip2)
compare in interface Comparator<BatchModeRequestHandler.IndexedProposal>ip1 - an indexed proposalip2 - an indexed proposalpublic int compareTo(BatchModeRequestHandler.IndexedProposal ip)
compareTo in interface Comparable<BatchModeRequestHandler.IndexedProposal>ip - an indexed proposalCopyright © 2013. All rights reserved.