Custom Flow Statistics in AnyLogic Refinery Simulation
FlowProvider flowProvider = getFlow(fluidBlock); FlowSupplier flowSupplier = () -> calculateDieselFlow(); private void addDfphDieselDetailRows() {
final int indentLevel = 4;
final int productId = Products.DIESEL_FUEL.getProductId();
mainAgent.resultsExporter.addAdditionalRow(
new AdditionalRowExportTotalOutput(
"To tank farm",
indentLevel,
DFPH,
productId,
measType -> getValue(fEnter_TankFarm_Diesel, measType));
mainAgent.resultsExporter.addAdditionalRow(
new AdditionalRowExportTotalOutput(
"Non-conforming",
indentLevel,
DFPH,
productId,
measType -> getValue(fEnter_NonConf_Diesel, measType));
mainAgent.resultsExporter.addAdditionalRow(
new AdditionalRowExportTotalOutput(
"To reprocessing",
indentLevel,
DFPH,
productId,
measType -> getValue(fEnter_Reprocessing_Diesel, measType));
}