Class VEFrameObserverSwarm

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.simtoolsgui.GUISwarmImpl
              |
              +--VEFrameObserverSwarm
All Implemented Interfaces:
swarm.activity.ActionType, swarm.activity.ActionTypeS, swarm.defobj.Create, swarm.defobj.CreateS, swarm.defobj.Customize, swarm.defobj.CustomizeS, swarm.defobj.DefinedObject, swarm.defobj.DefinedObjectS, swarm.defobj.Drop, swarm.defobj.DropS, swarm.defobj.GetName, swarm.defobj.GetNameS, swarm.simtoolsgui.GUISwarm, swarm.simtoolsgui.GUISwarmS, swarm.objectbase.Swarm, swarm.activity.SwarmProcess, swarm.activity.SwarmProcessS, swarm.objectbase.SwarmS, swarm.activity.SynchronizationType, swarm.activity.SynchronizationTypeS, swarm.simtoolsgui.WindowGeometryRecordName, swarm.simtoolsgui.WindowGeometryRecordNameS, swarm.defobj.Zone, swarm.defobj.ZoneS

public class VEFrameObserverSwarm
extends swarm.simtoolsgui.GUISwarmImpl

The Observer contains the Model and the graphic widgets

Author:
Pietro Terna and several of his students

Field Summary
 swarm.analysis.EZGraphImpl benefitFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl benefitGraph
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl dailyRevenueFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl dailySemimanufacturedOrderCostFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl dailySemimanufacturedOrderRevenueFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl dailyStoredComponentValueFile
          our graphics or EZGraph output to files
 swarm.activity.ActionGroup displayActions1
          two ActionGroup for sequence of GUI events
 swarm.activity.ActionGroup displayActions2
          two ActionGroup for sequence of GUI events
 int displayFrequency
          update frequency
 swarm.activity.Schedule displaySchedule
          the single Schedule instance
 int endUnitHistogramXPos
          PTHistogram positions
 int endUnitHistogramYPos
          PTHistogram positions
 swarm.analysis.EZGraphImpl finishedOrderCostFile
          our graphics or EZGraph output to files
 PTHistogram pTHistogram1
          a Java graphic via ptplot class
 PTHistogram pTHistogram2
          a Java graphic via ptplot class
 swarm.analysis.EZGraphImpl totalCostFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl totalDailyCostFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl totalInventoryFinancialCostFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl totalRevenueFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl totalTimeLengthDataFile
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl totalTimeLengthGraph
          our graphics or EZGraph output to files
 int unitHistogramXPos
          PTHistogram positions
 int unitHistogramYPos
          PTHistogram positions
 VEFrameModelSwarm vEFrameModelSwarm
          the Swarm we are observing
 boolean verboseChoice
          displaying all messages on the console
 swarm.analysis.EZGraphImpl waitingListGraph
          our graphics or EZGraph output to files
 swarm.analysis.EZGraphImpl warehouseGraph
          our graphics or EZGraph output to files
 
Fields inherited from class swarm.simtoolsgui.GUISwarmImpl
actionCache, controlPanel
 
Constructor Summary
VEFrameObserverSwarm(swarm.defobj.Zone aZone)
          Constructor for class
 
Method Summary
 swarm.activity.Activity activateIn(swarm.objectbase.Swarm swarmContext)
          activateIn: - activate the schedules so they're ready to run.
 java.lang.Object buildActions()
          Create the actions necessary for the simulation.
 java.lang.Object buildObjects()
          Create the objects used to display of the model.
 void drop()
          drop the Observer, but after having dropped all the EZGraphs files, to close them
 
Methods inherited from class swarm.simtoolsgui.GUISwarmImpl
allocIVars, allocIVarsComponent, compare, copyIVars, copyIVarsComponent, describe, describeForEach, describeForEachID, describeID, freeIVars, freeIVarsComponent, getActionCache, getActivity, getCompleteProbeMap, getComponentZone, getControlPanel, getDisplayName, getInternalZone, getName, getPageSize, getPopulation, getProbeForVariable, getProbeMap, getSynchronizationType, getTypeName, getZone, go, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayFrequency

public int displayFrequency
update frequency

verboseChoice

public boolean verboseChoice
displaying all messages on the console

displayActions1

public swarm.activity.ActionGroup displayActions1
two ActionGroup for sequence of GUI events

displayActions2

public swarm.activity.ActionGroup displayActions2
two ActionGroup for sequence of GUI events

displaySchedule

public swarm.activity.Schedule displaySchedule
the single Schedule instance

vEFrameModelSwarm

public VEFrameModelSwarm vEFrameModelSwarm
the Swarm we are observing

waitingListGraph

public swarm.analysis.EZGraphImpl waitingListGraph
our graphics or EZGraph output to files

warehouseGraph

public swarm.analysis.EZGraphImpl warehouseGraph
our graphics or EZGraph output to files

totalTimeLengthGraph

public swarm.analysis.EZGraphImpl totalTimeLengthGraph
our graphics or EZGraph output to files

totalTimeLengthDataFile

public swarm.analysis.EZGraphImpl totalTimeLengthDataFile
our graphics or EZGraph output to files

totalDailyCostFile

public swarm.analysis.EZGraphImpl totalDailyCostFile
our graphics or EZGraph output to files

totalCostFile

public swarm.analysis.EZGraphImpl totalCostFile
our graphics or EZGraph output to files

totalRevenueFile

public swarm.analysis.EZGraphImpl totalRevenueFile
our graphics or EZGraph output to files

dailyRevenueFile

public swarm.analysis.EZGraphImpl dailyRevenueFile
our graphics or EZGraph output to files

dailySemimanufacturedOrderRevenueFile

public swarm.analysis.EZGraphImpl dailySemimanufacturedOrderRevenueFile
our graphics or EZGraph output to files

totalInventoryFinancialCostFile

public swarm.analysis.EZGraphImpl totalInventoryFinancialCostFile
our graphics or EZGraph output to files

dailyStoredComponentValueFile

public swarm.analysis.EZGraphImpl dailyStoredComponentValueFile
our graphics or EZGraph output to files

dailySemimanufacturedOrderCostFile

public swarm.analysis.EZGraphImpl dailySemimanufacturedOrderCostFile
our graphics or EZGraph output to files

finishedOrderCostFile

public swarm.analysis.EZGraphImpl finishedOrderCostFile
our graphics or EZGraph output to files

benefitFile

public swarm.analysis.EZGraphImpl benefitFile
our graphics or EZGraph output to files

benefitGraph

public swarm.analysis.EZGraphImpl benefitGraph
our graphics or EZGraph output to files

pTHistogram1

public PTHistogram pTHistogram1
a Java graphic via ptplot class

pTHistogram2

public PTHistogram pTHistogram2
a Java graphic via ptplot class

unitHistogramXPos

public int unitHistogramXPos
PTHistogram positions

unitHistogramYPos

public int unitHistogramYPos
PTHistogram positions

endUnitHistogramXPos

public int endUnitHistogramXPos
PTHistogram positions

endUnitHistogramYPos

public int endUnitHistogramYPos
PTHistogram positions
Constructor Detail

VEFrameObserverSwarm

public VEFrameObserverSwarm(swarm.defobj.Zone aZone)
Constructor for class
Method Detail

buildObjects

public java.lang.Object buildObjects()
Create the objects used to display of the model.
Overrides:
buildObjects in class swarm.simtoolsgui.GUISwarmImpl

buildActions

public java.lang.Object buildActions()
Create the actions necessary for the simulation. This is where the schedule is built (but not run!) Here we create a display schedule - this is used to display the state of the world and check for user input.
Overrides:
buildActions in class swarm.simtoolsgui.GUISwarmImpl

activateIn

public swarm.activity.Activity activateIn(swarm.objectbase.Swarm swarmContext)
activateIn: - activate the schedules so they're ready to run. The swarmContext argument has to do with what we were activated in*. Typically the ObserverSwarm is the top-level Swarm, so it's activated in "null". But other Swarms and Schedules and such will be activated inside of us.
Overrides:
activateIn in class swarm.simtoolsgui.GUISwarmImpl

drop

public void drop()
drop the Observer, but after having dropped all the EZGraphs files, to close them
Overrides:
drop in class swarm.simtoolsgui.GUISwarmImpl