C3Conflict Auto Start

From C3LearningLabs

Client Auto Start Configuration

The information in the client's auto start configuration defines if the C3Conflict client should automatically perform any selections in a client's start process. Auto start values can be defined in the client's system configuration, in the html file used when starting the client, and in the query passed to the html request, see System Client Configuration , and Client Html Configuration.

You only need to define the auto start in one of the locations described below!

The configuration priority for a auto start parameter are;

  1. Test if value in query.
  2. Test if value in html file.
  3. Test if value in client system configuration file.

Client Configuration

The client system configuration file, C3ConflictClientConfig.xml, that can control the auto start are located at.
<C3LEARNINGLABS-ROOT>\C3Conflict\Client\C3ConflictClientConfig.xml.

Example: C:\C3LearningLabs\C3Conflict\Client\C3ConflictClientConfig.xml

The auto start parameters are defined in the xml tag <AutoStart>.

<C3ClientConfig
  Version = "3.2.0.6" >
...
 <AutoStart
  Active             = "False"           
  UserType           = "Manager"        
  ActivationType     = "Play"
  Role               = ""
  SequenceSelection  = ""
  SequenceName       = "" 
  ConfigFile         = "..\SessionDef\SessionConfig\Tracer\IEDTracer-2P.con"
  ScenarioFile       = "..\SessionDef\SessionScenario\Dev-Events.sce"
  MapImageFile       = "..\SessionDef\SessionMapImage\Blovistan.png"
  SequenceConfigFile = "" 
  SessionInfo = "Ask"
  SessionID = "Skip"
/>
...
</C3ClientConfig>


Client Html Configuration

The client system configuration file, C3ConflictAppletviewer.shtml, that can control the auto start are located at.
<C3LEARNINGLABS-ROOT>\C3Conflict\Www\C3ConflictAppletviewer.shtml.

Example: C:\C3LearningLabs\C3Conflict\Www\C3ConflictAppletviewer.shtml

The auto start parameters are defined in the html tag <object>.

<HTML>
...
<object  width="350" height="150">
  ...
  <param name="AutoStart_Active" value="True">
  <param name="AutoStart_UserType" value="Manager">
  <param name="AutoStart_ActivationType" value="Play">
  <param name="AutoStart_Role" value="X">
  <param name="AutoStart_SequenceSelection" value="CreateNew">
  <param name="AutoStart_SequenceName" value="XY1">
  <param name="AutoStart_ConfigFile" value="C:\SessionConfig\XY.con">
  <param name="AutoStart_ScenarioFile" value="C:\SessionScenario\Dev.sce">
  <param name="AutoStart_MapImageFile" value="C:\SessionMapImage\Dev.gif">
  <param name="AutoStart_SequenceConfigFile" value="C:\SessionSequence\XY1.seq">
  <param name="AutoStart_SessionInfo" value="Ask">
  <param name="AutoStart_SessionID" value="Skip">
</object>
..
</HTML>


Auto start parameters

The parameters for the auto start are:

  • Active
  • UserType
  • ActivationType
  • Role
  • Config


It is not important to define all parameters, if a parameter is not defined the system will displays the question to the user.

Active
If the auto start should be performed or not. Possible values, True and False.

If True the system perform the parameters defined. If the system does not find a parameter it displays the question to the user.

If False all auto start parameters are ignored.
Active = "False"

UserType
Ask if the client should be a Manager, Observer or Player
Possible values are Manager, Observer or Player.

Example: UserType = "Manager"

UserType


ActivationType
Defines if the client should create a new session or replay an old session.
Possible values are Play (Create New Session) or Replay.
It is not possible to activate a load old session.

Example: ActivationType = "Play"

ActivationType


Role
Defines what role this player would take.
Possible values are roles defined in the session configuration.

Example: Role = "Blue"

Role


Config
Defines the configuration files that should be used in the session.
Files should be defined for ConfigFile, ScenarioFile and MapImageFile.

ConfigFile         = "..\SessionDef\SessionConfig\Tracer\IEDTracer-2P.con"
ScenarioFile       = "..\SessionDef\SessionScenario\Dev-Events.sce"
MapImageFile       = "..\SessionDef\SessionMapImage\Blovistan.png"


Config

Session Information
Ask if the system should show the user interface that let the user write session information.
Possible values are:
Skip: Do not display input session information window.
Ask: Do display input session information window.

Example: SessionInfo= "Skip"

Session Information


Session ID
Ask if the system should show the session identification number.
Possible values are:
Skip: Do not display session identification numberwindow.
Display: Do display session identification numberwindow.

Example: SessionInfo= "Skip"

Session ID