|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.model.visual.backward.Statistic
public class Statistic
The Statistics class represents single row of statistics of given domain model, which corresponds to single graph node. The important properties of the default statistics are:
getNodeName()
)
getTarget()
)
getSource()
)
getTotal()
)
Constructor Summary | |
---|---|
Statistic(String nodeName)
Creates new statistics with no values. |
|
Statistic(String nodeName,
double outgoing,
double incoming)
Creates new statistics of double values. |
|
Statistic(String nodeName,
int outgoing,
int incoming)
Creates new statistics of integer values. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
String |
getNodeName()
Returns the name of the node which correspond to this statistics row. |
double |
getSource()
Returns the value of the statistics for the source edges. |
String |
getSourceLabel()
Returns the label (i.e. |
double |
getTarget()
Returns the value of the statistics for the target edges. |
String |
getTargetLabel()
Returns the label (i.e. |
double |
getTotal()
Returns the total value of the statistics row. |
String |
getTotalLabel()
Returns the label of the total value of the statistics row. |
int |
hashCode()
|
boolean |
isSummary()
Is the statistic row a special (summary) row? It will always appear at the end of the statistics dialog. |
void |
setNodeName(String nodeName)
Sets the name of the node which correspond to this statistics row. |
void |
setSource(double outgoing)
Sets the value of the statistics for the source edges. |
void |
setSummary(boolean value)
Set the summary flag. |
void |
setTarget(double incoming)
Sets the value of the statistics for the target edges. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Statistic(String nodeName, int outgoing, int incoming)
nodeName
- the name of the node which correspond to this statistics row; may not be nulloutgoing
- the value of the statistics for the source edgesincoming
- the value of the statistics for the target edges
IllegalArgumentException
- if node name is nullpublic Statistic(String nodeName, double outgoing, double incoming)
nodeName
- the name of the node which correspond to this statistics row; may not be nulloutgoing
- the value of the statistics for the source edgesincoming
- the value of the statistics for the target edges
IllegalArgumentException
- if node name is nullpublic Statistic(String nodeName)
nodeName
- the name of the node which correspond to this statistics rowMethod Detail |
---|
public void setSummary(boolean value)
value
- the new flag valuepublic boolean isSummary()
public String getNodeName()
public void setNodeName(String nodeName)
nodeName
- the name of the node which correspond to this statistics row; may not be null
IllegalArgumentException
- if node name is nullpublic double getSource()
public void setSource(double outgoing)
outgoing
- the value of the statistics for the source edgespublic double getTarget()
public void setTarget(double incoming)
incoming
- the value of the statistics for the target edgespublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public String getTargetLabel()
public String getSourceLabel()
public double getTotal()
public String getTotalLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |