Download CORE Manual

Transcript
CORE MANUAL
E
Startup operations
It is assumed here that you previously read the second manual of the documention entitled Tutorial
(i.e., the file Tutorial.pdf) and that you are familiar with the operation of MASS. Running MASS
launches the CORE, which executes the start initialization that we describe below.
E.1
Default initialization
At startup, the CORE executes the function calls display in Script 5 below. These actions are
transparent for the user. All these functions are executed to initialize (before any simulation) all arrays
from default data read in files or in registries. For instance, LoadMissionDLLs, LoadLibrary… are
called by OnInitialUpdate. At the end of this initialization phase, the CORE stays pending until the
user selects a scenario. The initialization comprises:
The construction of the agent and obstacle arrays.
The definition of the agent missions and strategies from the mission scripts (see Manual 3
entitled DLLs Manual), and from data stored in the registry base of Windows.
The construction of the learning engine, if learning is activated.



CAGNTView::CAGNTView
CAGNTView::OnInitialUpdate
CAGNTView::LoadMissionDLLs
LoadLibrary
UpdateInterfaceFromDLL
CAGNTView::ReadDataInRegistries
CAGNTView::ReadDefaultDataInCore
CAGNTView::BuildAgentPopulations
Script 5: Call graph during the initialization phase
E.2
Scenario loading
Following the default initialization described in section E.1, you must load a scenario prior to
running any simulation. All scenarios are stored in XML files with the extension MAS. There are 2
methods to load a scenario:
Method 1: Run MASS, then click the "File" item of the menu, and select a recent file in the dialog box
splashed by these actions. This procedure directly displays in MASS the intial distributions
of the selected scenario. The following function calls are executed in this case.
CAGNTApp::OnOpenRecentFile
(Event function when you click a scenario)
XMLNode::openFileHelper
CView::ReadAgentFromXML
CView::LoadMissionDLLFromScenario
CView::ReadAgentFromXML
SECOND CALL!
CView::ReadPlaygroundFromXML
CView::ReadChartParamFromXML
CView::CreateDraftWnd()
CView::CXDraft::ReadXMLFromDisk_2D
CLine::Fill
Revision: 128
IV-28/206
18/12/2013