|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.viewers.AbstractCalculator
edu.usc.cse.desi.viewers.LatencyCalculator
This calculator will calculate the overall availability of the system based on the following formula: SumOverAllComps(SumOverAllComps(FREQ* (DELAY + EVTSIZE/BW) ))/SumOverAllComps(Freq)
| Field Summary |
| Fields inherited from class edu.usc.cse.desi.viewers.AbstractCalculator |
myLabel, myModel |
| Constructor Summary | |
LatencyCalculator(DESIViewModel model,
org.eclipse.swt.widgets.Label label)
|
|
| Method Summary | |
protected void |
addThisAsAListenerToModel()
Add this as a listener to the model. |
protected void |
calculate()
Here's where we calculate the availability and print it to the label. |
static double |
calculateLatency(DESIViewModel model)
This is a static method that can be used at any time to calculate the latency of a system. |
void |
propertyChange(java.beans.PropertyChangeEvent arg0)
When properties change, we have to re-calculate the availability. |
protected void |
removeThisAsAListenerFromModel()
I overrode this method: |
| Methods inherited from class edu.usc.cse.desi.viewers.AbstractCalculator |
finalize, modelChanged, setMyLabelText |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LatencyCalculator(DESIViewModel model,
org.eclipse.swt.widgets.Label label)
model - label - | Method Detail |
protected void addThisAsAListenerToModel()
addThisAsAListenerToModel in class AbstractCalculatorAbstractCalculator.addThisAsAListenerToModel()public void propertyChange(java.beans.PropertyChangeEvent arg0)
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)public static double calculateLatency(DESIViewModel model)
model -
protected void calculate()
calculate in class AbstractCalculatorAbstractCalculator.calculate()protected void removeThisAsAListenerFromModel()
removeThisAsAListenerFromModel in class AbstractCalculatorAbstractCalculator.removeThisAsAListenerFromModel()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||