de.uni_paderborn.robots.gui
Class StatisticPanel.EnergyVal
java.lang.Object
|
+--de.uni_paderborn.robots.gui.StatisticPanel.EnergyVal
- Enclosing class:
- StatisticPanel
- class StatisticPanel.EnergyVal
- extends java.lang.Object
inner class which is used by the table for storing energy of the robot
|
Field Summary |
private int |
energy
variable for saving the energy value of a table entry |
|
Method Summary |
int |
getEnergy()
function which returns the current value |
void |
setEnergy(int val)
function which sets the energy value of the table |
void |
setEnergy(java.lang.Object val)
function which sets the energy value of the table |
java.lang.String |
toString()
function which returns the current value |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
energy
private int energy
- variable for saving the energy value of a table entry
StatisticPanel.EnergyVal
public StatisticPanel.EnergyVal(int val)
- constructor which sets the energy value of the table
- Parameters:
val - the new energy value
StatisticPanel.EnergyVal
public StatisticPanel.EnergyVal()
- constructor which sets the energy value of the table to 0
setEnergy
public void setEnergy(int val)
- function which sets the energy value of the table
- Parameters:
val - the new energy value
setEnergy
public void setEnergy(java.lang.Object val)
- function which sets the energy value of the table
- Parameters:
val - object which contains the new value
getEnergy
public int getEnergy()
- function which returns the current value
- Returns:
- the int-value of the energy
toString
public java.lang.String toString()
- function which returns the current value
- Overrides:
toString in class java.lang.Object
- Returns:
- the string-value of the energy