|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 Measure s |
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 MoreMeasureSupplier s. |
Set<MoreMeasureCategory> |
getCategories()
Return all MeasureCategory s this supplier provides Measure s for |
Set<MMeasureDescription> |
getMeasureDescriptions()
Returns MeasureDescription of the Measure s 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 Measure
s
protected Set<MoreMeasureCategory> categories
MeasureCategory
this supplier supports
protected Set<MoreMeasureSupplier> suppliers
Constructor Detail |
---|
public MAbstractMeasureSupplier()
Method Detail |
---|
public boolean addMeasureSupplier(MoreMeasureSupplier supplier)
MoreMeasureSupplier
NetworkMeasureSupplier
at the implementing supplier
addMeasureSupplier
in interface MoreMeasureSupplier
supplier
- The NetworkMeasureSupplier
to register
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#addMeasureSupplier(edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier)
public boolean removeMeasureSupplier(MoreMeasureSupplier supplier)
MoreMeasureSupplier
NetworkMeasureSupplier
at the implementing supplier
removeMeasureSupplier
in interface MoreMeasureSupplier
supplier
- The NetworkMeasureSupplier
to register
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#removeMeasureSupplier(edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier)
public Set<MMeasureDescription> getMeasureDescriptions()
MoreMeasureSupplier
MeasureDescription
of the Measure
s this supplier provides
getMeasureDescriptions
in interface MoreMeasureSupplier
MeasureDescriptions
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#getMeasureDescriptions()
public MoreMeasure findMeasure(MMeasureDescription description)
MoreMeasure
according to the given MMeasureDescription
in the chain of MoreMeasureSupplier
s.
findMeasure
in interface MoreMeasureSupplier
description
- the MeasureDescription
whose calculation providing Measure
is demanded
Measure
that belongs to the given MeasureDescription
edu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#findMeasure(edu.uos.sh.soneta.measures.NetworkMeasureUtilities.MeasureDescriptionTemp)
public Set<MoreMeasureCategory> getCategories()
MoreMeasureSupplier
MeasureCategory
s this supplier provides Measure
s for
getCategories
in interface MoreMeasureSupplier
MeasureCategory
s this supplier provides Measure
s foredu.MoreMeasureSupplier.sh.soneta.measures.supply.NetworkMeasureSupplier#getCategories()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |