uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model
Class Activity5_1alpha

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model.Activity5_1alpha

public class Activity5_1alpha
extends Object


Constructor Summary
Activity5_1alpha()
           
 
Method Summary
 void addUsageReport(Usage report)
          Add a usage report to the Activity.
 void addUsageReport(UsageReport serReport)
           
 void addUsageSummary(UsageSummary5_1alpha u)
           
 boolean equals(Object obj)
           
 void finish()
           
 String getConversationId()
           
 Calendar getEndTime()
           
 org.apache.axis.message.addressing.EndpointReferenceType getEPR()
           
 String getId()
           
 double getRate(Metric metric, Calendar time)
          Find the rate of use of resource "metric" at the time
 double getRateSafe(Metric metric, Calendar time)
           
 String getServiceEndpoint()
           
 SLA5_1alpha getSla()
           
 Calendar getStartTime()
           
 ActivityState getState()
           
 List<UsageSummaryElement5_1alpha> getUsageEvents(Metric metric, GregorianCalendar start, GregorianCalendar end)
           
 Set<Metric> getUsageMetrics()
          Get the Set of Metrics that have had Usage reported in this SLA.
 List<Usage> getUsageReports()
           
 UsageSummary5_1alpha getUsageSummary(Metric metric)
           
 Map<Metric,UsageSummary5_1alpha> getUsageSummaryMap()
           
 Set<UsageSummary5_1alpha> getUsageSummarys()
           
 int hashCode()
           
 void setEndTime(Calendar argEndTime)
           
 void setEPR(org.apache.axis.message.addressing.EndpointReferenceType argEPR)
           
 void setSla(SLA5_1alpha argSla)
           
 void setStartTime(Calendar argStartTime)
           
 void setState(ActivityState argState)
           
 void setUsageReports(List<Usage> argUsageReports)
           
 void setUsageSummaryMap(Map<Metric,UsageSummary5_1alpha> argUsageSummaryMap)
           
 void setUsageSummarys(Set<UsageSummary5_1alpha> argUsageSummarys)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activity5_1alpha

public Activity5_1alpha()
Method Detail

getId

public String getId()

getEPR

public org.apache.axis.message.addressing.EndpointReferenceType getEPR()

setEPR

public void setEPR(org.apache.axis.message.addressing.EndpointReferenceType argEPR)

getServiceEndpoint

public String getServiceEndpoint()

getConversationId

public String getConversationId()

getStartTime

public Calendar getStartTime()

setStartTime

public void setStartTime(Calendar argStartTime)

getEndTime

public Calendar getEndTime()

setEndTime

public void setEndTime(Calendar argEndTime)

getState

public ActivityState getState()

setState

public void setState(ActivityState argState)

getUsageReports

public List<Usage> getUsageReports()

setUsageReports

public void setUsageReports(List<Usage> argUsageReports)

getUsageSummarys

public Set<UsageSummary5_1alpha> getUsageSummarys()

setUsageSummarys

public void setUsageSummarys(Set<UsageSummary5_1alpha> argUsageSummarys)

getUsageSummaryMap

public Map<Metric,UsageSummary5_1alpha> getUsageSummaryMap()

setUsageSummaryMap

public void setUsageSummaryMap(Map<Metric,UsageSummary5_1alpha> argUsageSummaryMap)

getSla

public SLA5_1alpha getSla()

setSla

public void setSla(SLA5_1alpha argSla)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

addUsageSummary

public void addUsageSummary(UsageSummary5_1alpha u)

addUsageReport

public void addUsageReport(UsageReport serReport)

addUsageReport

public void addUsageReport(Usage report)
Add a usage report to the Activity. This has the side-effect of adding the usage report to the parent SLA as well.


getUsageSummary

public UsageSummary5_1alpha getUsageSummary(Metric metric)

getUsageEvents

public List<UsageSummaryElement5_1alpha> getUsageEvents(Metric metric,
                                                        GregorianCalendar start,
                                                        GregorianCalendar end)

getUsageMetrics

public Set<Metric> getUsageMetrics()
Get the Set of Metrics that have had Usage reported in this SLA.


getRate

public double getRate(Metric metric,
                      Calendar time)
Find the rate of use of resource "metric" at the time


getRateSafe

public double getRateSafe(Metric metric,
                          Calendar time)

start

public void start()

finish

public void finish()


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.