UNICORE Resource Broker Client Plugin
1.5α1

org.eurogrid.broker.client
Class BrokerOfferQoS

java.lang.Object
  |
  +--org.eurogrid.broker.client.BrokerOffer
        |
        +--org.eurogrid.broker.client.BrokerOfferQoS

public class BrokerOfferQoS
extends BrokerOffer

Class representing Offer from a Vsite that has QoS

Version:
$Revision: 1.9 $, $Date: 2004/02/17 11:32:40 $
Author:
Jon MacLaren

Field Summary
 
Fields inherited from class org.eurogrid.broker.client.BrokerOffer
isSuccessful
 
Constructor Summary
BrokerOfferQoS()
          Default constructor
BrokerOfferQoS(Vsite realVsite, Vsite vsite, com.pallas.unicore.extensions.Usite usite, TaskIDStatusSet statusSet, EstimateSet estimateSet)
          Construct an object representing the offer
 
Method Summary
 void applyToJob(AbstractJob job)
          Apply the tickets, in the form of updated resource sets, to the job.
 void calculateSuccess(TaskResourceDAG jobDescription)
          Calculates the success of the offer (for retrieval with BrokerOffer.successful()).
 void displayTickets(JDialog parent)
          Display the Tickets
 String getCostUnits()
          Return the units of the total cost for the job.
 EstimateSet getEstimateSet()
          Get the estimate set part of the offer
 Date getLatestEndTime()
          Return the latest end time for the job.
 Date getLatestStartTime()
          Return the latest start time for the job.
 Date getSoonestEndTime()
          Return the soonest end time for the job.
 Date getSoonestStartTime()
          Return the soonest start time for the job.
 double getTotalCost()
          Return the total cost for the job.
 void setEstimateSet(EstimateSet estimateSet)
          Set the estimate set part of the offer
 boolean ticketsAllValid()
          Return the overall ticket validity of the offer
 
Methods inherited from class org.eurogrid.broker.client.BrokerOffer
getRealVsite, getRealVsiteAddress, getRealVsiteHandle, getStatusSet, setRealVsite, setStatusSet, successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerOfferQoS

public BrokerOfferQoS()
Default constructor


BrokerOfferQoS

public BrokerOfferQoS(Vsite realVsite,
                      Vsite vsite,
                      com.pallas.unicore.extensions.Usite usite,
                      TaskIDStatusSet statusSet,
                      EstimateSet estimateSet)
Construct an object representing the offer

Parameters:
realVsite - The Vsite which gave the offer
vsite - The Vsite which the offer came from
usite - The Usite that the Vsite belongs to
statusSet - The status set containing the details of the offer for each ExecuteTask in the AJO for the AbstractJob being brokered
estimateSet - A set containing the QoS information from the offer, in a similar format to the status set.
Method Detail

applyToJob

public void applyToJob(AbstractJob job)
Apply the tickets, in the form of updated resource sets, to the job.

Overrides:
applyToJob in class BrokerOffer

calculateSuccess

public void calculateSuccess(TaskResourceDAG jobDescription)
Calculates the success of the offer (for retrieval with BrokerOffer.successful()). Also extracts and summarises QoS information for retrieval by various "getters".

Overrides:
calculateSuccess in class BrokerOffer
Parameters:
jobDescription - The original DAG of resource requirements for the job being brokered.
See Also:
TaskResourceDAG

displayTickets

public void displayTickets(JDialog parent)
Display the Tickets


getCostUnits

public String getCostUnits()
Return the units of the total cost for the job. Note that jobs are only considered to be valid offers if they use a single cost unit for each of their components.

Returns:
units of the total cost for the job

getEstimateSet

public EstimateSet getEstimateSet()
Get the estimate set part of the offer

Returns:
The QoS information for the offer

getLatestEndTime

public Date getLatestEndTime()
Return the latest end time for the job.

Returns:
Latest time the job will end

getLatestStartTime

public Date getLatestStartTime()
Return the latest start time for the job.

Returns:
Latest time the job will start

getSoonestEndTime

public Date getSoonestEndTime()
Return the soonest end time for the job.

Returns:
Soonest time the job will end

getSoonestStartTime

public Date getSoonestStartTime()
Return the soonest start time for the job.

Returns:
Soonest time the job will start

getTotalCost

public double getTotalCost()
Return the total cost for the job. Note that jobs are only considered to be valid offers if they use a single cost unit for each of their components.

Returns:
Total cost for the job

setEstimateSet

public void setEstimateSet(EstimateSet estimateSet)
Set the estimate set part of the offer

Parameters:
estimateSet - The QoS information for the offer

ticketsAllValid

public boolean ticketsAllValid()
Return the overall ticket validity of the offer

Returns:
True if all tickets in the offer are valid

UNICORE Resource Broker Client Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.