net.sf.freecol.client.gui.panel
Class LabourData.LocationData

java.lang.Object
  extended by net.sf.freecol.client.gui.panel.LabourData.LocationData
Enclosing class:
LabourData

public static class LabourData.LocationData
extends java.lang.Object


Nested Class Summary
static interface LabourData.LocationData.Getter
           
 
Field Summary
private  boolean isTotal
          if this is the total for the unit data
private  int netProduction
          net production of goods
private  int notWorking
          not working colonists
private  int otherStudents
          students learning this job (i.e.
private  java.lang.String otherStudentsName
          of of the other studends
private  LabourData.ProductionData otherWorkingAmateurs
          others working as lumberjacks
private  int students
          students in their old type (i.e.
private  int teachers
          teachers
private  LabourData.UnitData unitData
          associated unit data
private  int workingAmateurs
          lumberjacks working as something else
private  LabourData.ProductionData workingProfessionals
          experts working in their expert field
 
Constructor Summary
LabourData.LocationData(LabourData.UnitData unitData)
           
LabourData.LocationData(LabourData.UnitData unitData, boolean total)
           
 
Method Summary
private  void add(LabourData.LocationData data)
           
 void addOtherStudent(java.lang.String name)
           
 int getNetProduction()
           
 int getNotWorking()
           
 int getOtherStudents()
           
 java.lang.String getOtherStudentsName()
           
 LabourData.ProductionData getOtherWorkingAmateurs()
           
 int getRowCount()
          in the summary for all unit types, some rows are skipped
 int getStudents()
           
 int getTeachers()
           
 int getTotalColonists()
           
 int getTotalProduction()
           
 LabourData.UnitData getUnitData()
           
 int getWorkingAmateurs()
           
 LabourData.ProductionData getWorkingProfessionals()
           
 boolean isTotal()
           
 boolean isTraining()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unitData

private LabourData.UnitData unitData
associated unit data


isTotal

private boolean isTotal
if this is the total for the unit data


workingProfessionals

private LabourData.ProductionData workingProfessionals
experts working in their expert field


workingAmateurs

private int workingAmateurs
lumberjacks working as something else


otherWorkingAmateurs

private LabourData.ProductionData otherWorkingAmateurs
others working as lumberjacks


netProduction

private int netProduction
net production of goods


teachers

private int teachers
teachers


otherStudents

private int otherStudents
students learning this job (i.e. lumberjacks, not free colonists)


otherStudentsName

private java.lang.String otherStudentsName
of of the other studends


students

private int students
students in their old type (i.e. free colonists, not lumberjacks)


notWorking

private int notWorking
not working colonists

Constructor Detail

LabourData.LocationData

public LabourData.LocationData(LabourData.UnitData unitData)

LabourData.LocationData

public LabourData.LocationData(LabourData.UnitData unitData,
                               boolean total)
Method Detail

getOtherStudents

public int getOtherStudents()

getOtherStudentsName

public java.lang.String getOtherStudentsName()

addOtherStudent

public void addOtherStudent(java.lang.String name)

getWorkingProfessionals

public LabourData.ProductionData getWorkingProfessionals()

getOtherWorkingAmateurs

public LabourData.ProductionData getOtherWorkingAmateurs()

getNetProduction

public int getNetProduction()

getTotalColonists

public int getTotalColonists()

getTotalProduction

public int getTotalProduction()

getRowCount

public int getRowCount()
in the summary for all unit types, some rows are skipped

Returns:
the rows to display the unit data

isTraining

public boolean isTraining()

getWorkingAmateurs

public int getWorkingAmateurs()

getTeachers

public int getTeachers()

getStudents

public int getStudents()

getNotWorking

public int getNotWorking()

getUnitData

public LabourData.UnitData getUnitData()

isTotal

public boolean isTotal()

add

private void add(LabourData.LocationData data)