@Deprecated public final class ProductionLineManager extends AbstractDesigner<ProductionLine>
| Modifier and Type | Field and Description |
|---|---|
static int |
LEFTINFOREST_PIECE
Deprecated.
|
protected static lerfob.carbonbalancetool.productionlines.ProductionLineManager.ProductionLineFileFilter |
MyFileFilter
Deprecated.
|
static int |
PROCESSED_PIECE
Deprecated.
|
| Constructor and Description |
|---|
ProductionLineManager()
Deprecated.
General constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actualizeCarbonUnits(CATCompartmentManager compartmentManager)
Deprecated.
This method actualizes the different carbon units.
|
protected void |
addMarketModel(ProductionLine marketModel)
Deprecated.
|
void |
addProductionLineManagerChangeListener(ProductionLineManagerChangeListener listener)
Deprecated.
This method adds a ProductionLineManagerChangeListener instance if it is not already contained in the
listeners.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
protected void |
fireDesignerChangeEvent()
Deprecated.
|
CarbonUnitList |
getCarbonUnits(CarbonUnit.CarbonUnitStatus type)
Deprecated.
This method returns the CarbonUnitList instance that match the type of carbon.
|
java.util.List<ProductionLine> |
getContent()
Deprecated.
This method returns a Collection of UserInterfaceableObject instances that are to be set in the different tabs of the dialog.
|
javax.swing.filechooser.FileFilter |
getFileFilter()
Deprecated.
This method returns the appropriate FileFilter instance for this class.
|
java.util.Vector<java.lang.String> |
getProductionLineNames()
Deprecated.
This method provides the names of the different production lines.
|
boolean |
isValid()
Deprecated.
This method determines whether the designer is valid or not
|
void |
leftThisPieceInTheForest(int dateIndex,
AmountMap<CarbonUnit.Element> amountMap)
Deprecated.
This method leaves a wood piece in the forest (for instance the roots).
|
protected void |
loadFrom(AbstractDesigner<ProductionLine> designer)
Deprecated.
|
void |
processWoodPiece(java.lang.String marketName,
int creationDate,
AmountMap<CarbonUnit.Element> amountMap)
Deprecated.
The main method for this class.
|
protected CarbonUnitMap<CarbonUnit.CarbonUnitStatus> |
processWoodPieceIntoThisProductionLine(java.lang.String productionLineName,
int dateIndex,
AmountMap<CarbonUnit.Element> amountMap)
Deprecated.
This method sends a log into a specific production line.
|
protected void |
removeMarketModel(ProductionLine marketModel)
Deprecated.
|
void |
removeProductionLineManagerChangeListener(ProductionLineManagerChangeListener listener)
Deprecated.
This method removes a ProductionLineManagerChangeListener instance from the listeners.
|
void |
reset()
Deprecated.
This method reinitializes some fields of the instance that implements this interface.
|
void |
resetCarbonUnitMap()
Deprecated.
This method reinitializes the two collections that contains the carbon units left in the forest and those sent to the landfill.
|
protected void |
sendToTheLandfill(int dateIndex,
AmountMap<CarbonUnit.Element> amountMap)
Deprecated.
This method sends a piece of wood to the landfill site.
|
void |
setToDefaultValue()
Deprecated.
This method reinitializes the production line manager and fire an event to listeners for
eventual updating.
|
getFilename, getMemorizerPackage, getName, getWorkspace, isWorkSpaceChangeableInGUI, load, loadFromFile, save, setName, setWorkspace, setWorkSpaceChangeableInGUI, unpackMemorizerPackagepublic static final int PROCESSED_PIECE
public static final int LEFTINFOREST_PIECE
protected static final lerfob.carbonbalancetool.productionlines.ProductionLineManager.ProductionLineFileFilter MyFileFilter
public ProductionLineManager()
public void addProductionLineManagerChangeListener(ProductionLineManagerChangeListener listener)
listener - a ProductionLineManagerChangeListener listenerpublic void removeProductionLineManagerChangeListener(ProductionLineManagerChangeListener listener)
listener - a ProductionLineManagerChangeListener instanceprotected void fireDesignerChangeEvent()
fireDesignerChangeEvent in class AbstractDesigner<ProductionLine>public void setToDefaultValue()
public void reset()
Resettablereset in interface Resettablereset in class AbstractDesigner<ProductionLine>protected void addMarketModel(ProductionLine marketModel)
protected void removeMarketModel(ProductionLine marketModel)
public void resetCarbonUnitMap()
public void processWoodPiece(java.lang.String marketName,
int creationDate,
AmountMap<CarbonUnit.Element> amountMap)
throws java.lang.Exception
marketName - the production line the wood log is sent tocreationDate - the date at which the wood log is processedamountMap - a Map which contains the amounts of the different elementsjava.lang.Exceptionprotected CarbonUnitMap<CarbonUnit.CarbonUnitStatus> processWoodPieceIntoThisProductionLine(java.lang.String productionLineName, int dateIndex, AmountMap<CarbonUnit.Element> amountMap) throws java.lang.Exception
productionLineName - dateIndex - amountMap - java.lang.Exceptionprotected void sendToTheLandfill(int dateIndex,
AmountMap<CarbonUnit.Element> amountMap)
throws java.lang.Exception
dateIndex - the date at which the product was sent to the landfillamountMap - a Map which contains the amounts of the different elementsjava.lang.Exceptionpublic void leftThisPieceInTheForest(int dateIndex,
AmountMap<CarbonUnit.Element> amountMap)
throws java.lang.Exception
dateIndex - the index of the date at which the piece was left in the forestamountMap - a Map which contains the amounts of the different elementsjava.lang.Exceptionprotected void loadFrom(AbstractDesigner<ProductionLine> designer)
loadFrom in class AbstractDesigner<ProductionLine>public java.util.List<ProductionLine> getContent()
AbstractDesignergetContent in class AbstractDesigner<ProductionLine>public java.util.Vector<java.lang.String> getProductionLineNames()
public void actualizeCarbonUnits(CATCompartmentManager compartmentManager) throws java.lang.Exception
compartmentManager - java.lang.Exceptionpublic CarbonUnitList getCarbonUnits(CarbonUnit.CarbonUnitStatus type)
type - a CarbonUnitType enum (EndUseWoodProduct, Landfille, Recycled, LeftInForest)public javax.swing.filechooser.FileFilter getFileFilter()
ParameterizablegetFileFilter in interface IOUserInterfaceableObjectgetFileFilter in interface ParameterizablegetFileFilter in class AbstractDesigner<ProductionLine>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isValid()
AbstractDesignerisValid in class AbstractDesigner<ProductionLine>