Development Basic

From C3LearningLabs

OSM Map Layer

The OSM map layer is used to grapicaly represent the desired OSM data to the user.

OSM Configuration

The OSM configuration file, \IEDTracer-2P.con, that can control the OSM config options is located at.
<C3LEARNINGLABS-ROOT>\C3Conflict\SessionDef\SessionConfig\Tracer\IEDTracer-2P.con

Example: D:\Dev\Java\C3Systems\C3Conflict\SessionDef\SessionConfig\Tracer\IEDTracer-2P.con

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

...
  <OSM2s>

    <OSM2
      IDName = "OSM2Main"
      BackgroundColor = "#f0ede5"
      BuildingColor = "#e9e5dc"
      CanalWidth = "4"
      ChangedRoadColor = "#ff04ff"
      ChangedRoadWidth = "4"
      CityAreaColor = "#bababa"
      FarmedAreaColor = "#ffd782"
      ForestColor = "#dde6d6"
      IslandColor = "#eeeeee"
      MotorwayColor = "#fcad79"
      MotorwayWidth = "4"
      NodeHighlightColor = "#001896"
      NodeHighlightWidth = "4"
      ParkColor = "#cadeac"
      PathHighlightColor = "#960004"
      PathHighlightWidth = "4"
      PierColor = "#f0ede5"
      PierWidth = "2"
      PrimaryWayColor = "#fcd078"
      PrimaryWayWidth = "3"
      RailColor = "#c0c0c0"
      RailWidth = "2"
      ResidentWayColor = "#ffffff"
      ResidentWayWidth = "2"
      RiverWidth = "4"
      SecondaryWayColor = "#ffffff"
      SecondaryWayWidth = "2"
      StreamWidth = "2"
      TunnelColor = "#ffffff"
      UseOSM2Layer = "true"
      UseOSM2Map = "D:\Dev\Java\OSM\Vestervik.osm"
      WaterColor = "#b2d5fd"
      WetlandColor = "#e0d7f2" />

  </OSM2s>
...


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>