|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.cesr.more.measures.MAbstractMeasureSupplier
public abstract class MAbstractMeasureSupplier
Provides a basic implementation of MoreMeasureSupplier
| Field Summary | |
|---|---|
protected Set<MoreMeasureCategory> |
categories
Set that hold all MeasureCategory this supplier supports |
protected Map<MMeasureDescription,MoreMeasure> |
measures
A map that contains MeasureDescription and their Measures |
protected Set<MoreMeasureSupplier> |
suppliers
A Set that stores all children |
| Constructor Summary | |
|---|---|
MAbstractMeasureSupplier()
Basic constructor that initializes the map and sets |
|
| Method Summary | |
|---|---|
boolean |
addMeasureSupplier(MoreMeasureSupplier supplier)
Registers another NetworkMeasureSupplier at the implementing supplier |
boolean |
equals(Object o)
Uses the Classes of the objects to compare and calls the classes' equals. |
MoreMeasure |
findMeasure(MMeasureDescription description)
Delegate Pattern / Chain of Responsibility: Searches for a MoreMeasure according to the given MMeasureDescription in the chain of MoreMeasureSuppliers. |
Set<MoreMeasureCategory> |
getCategories()
Return all MeasureCategorys this supplier provides Measures for |
Set<MMeasureDescription> |
getMeasureDescriptions()
Returns MeasureDescription of the Measures this supplier provides |
int |
hashCode()
|
boolean |
removeMeasureSupplier(MoreMeasureSupplier supplier)
Removes another NetworkMeasureSupplier at the implementing supplier |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<MMeasureDescription,MoreMeasure> measures
MeasureDescription and their Measures
protected Set<MoreMeasureCategory> categories
MeasureCategory this supplier supports
protected Set<MoreMeasureSupplier> suppliers
| Constructor Detail |
|---|
public MAbstractMeasureSupplier()
| Method Detail |
|---|
public boolean addMeasureSupplier(MoreMeasureSupplier supplier)
MoreMeasureSupplierNetworkMeasureSupplier at the implementing supplier
addMeasureSupplier in interface MoreMeasureSuppliersupplier - The NetworkMeasureSupplier to register
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#addMeasureSupplier(edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier)public boolean removeMeasureSupplier(MoreMeasureSupplier supplier)
MoreMeasureSupplierNetworkMeasureSupplier at the implementing supplier
removeMeasureSupplier in interface MoreMeasureSuppliersupplier - The NetworkMeasureSupplier to register
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#removeMeasureSupplier(edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier)public Set<MMeasureDescription> getMeasureDescriptions()
MoreMeasureSupplierMeasureDescription of the Measures this supplier provides
getMeasureDescriptions in interface MoreMeasureSupplierMeasureDescriptionsedu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#getMeasureDescriptions()public MoreMeasure findMeasure(MMeasureDescription description)
MoreMeasure according to the given MMeasureDescription in the chain of MoreMeasureSuppliers.
findMeasure in interface MoreMeasureSupplierdescription - the MeasureDescription whose calculation providing Measure is demanded
Measure that belongs to the given MeasureDescriptionedu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#findMeasure(edu.uos.sh.soneta.measures.NetworkMeasureUtilities.MeasureDescriptionTemp)public Set<MoreMeasureCategory> getCategories()
MoreMeasureSupplierMeasureCategorys this supplier provides Measures for
getCategories in interface MoreMeasureSupplierMeasureCategorys this supplier provides Measures foredu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#getCategories()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||