Table of Contents

Manual Tpfdd - Asset

Three new capabilities have been added:

  1. changes can be flagged as inactive so that you don't have to delete them.
  2. percentage changes can be rounded to integers.
  3. The to Bse Id, to Time, and to Fact Value fields will allow you to 'move' the changes you specify to another bse.

Manual Tpfdd - Asset (MTA) is the name for a new capability in JAS that allow users to change the onHand and/or authorized amounts of Bse assets. These changes can be made absolutely, relatively, or by percentage, and can occur at specific sim times or be triggered by knowledge base changes.

Data

Currently MTA data is read from a csv file. The location of this file is specified by the MtAssetData setting under the Manual Tpfdd heading in the jasS.ini file. The name of this file is user-specified. Future development will include a gui.

; File:     jasS.ini
; Title:    Settings file for JAS Simulation System
 
[Manual Tpfdd]
MtAssetData=C:\Documents and Settings\DefaultUser\My Documents\JAS\resourceChanges.csv

There are 16 data fields in the input file:

  1. side - a string specifying any side defined in the scenario. Required.
  2. isActive - one of (T)rue or (F)alse. Only the first character is considered. Not case-sensitive. Required.
  3. time - integer or float. Empty means nil.
  4. factValue - the value passed by the knowledge base action Process MT. Empty means nil.
  5. bseId - a string specifying the name of the bse whose resourceAccount will be changed. Required.
  6. appliesToSubordinates - one of I(mmediate), A(ll), or (N)one. Required.
  7. assetName - the string name of the asset to be changed. Required.
  8. authorizedChangeType- one of (A)bsolute, (R)elative, or (P)ercentage. Only the first character is considered. Not case-sensitive. Empty means nil.
  9. authorizedChangeAmount - integer or float. Empty means nil.
  10. onHandChangeType - one of (A)bsolute, (R)elative, or (P)ercentage. Required. Only the first character is considered. Not case-sensitive. Empty means nil.
  11. onHandChangeAmount - integer or float. Empty means nil.
  12. useRounding - one of (T)rue or (F)alse. Only the first character is considered. Not case-sensitive. Required.
  13. toBseId - a string specifying the name of the bse that will receive the assets 'moved' from the bse above. Optional.
  14. toTime - integer or float. Empty means nil.
  15. toFactValue - the value passed by the knowledge base action Process MT. Empty means nil.
  16. comments - optional

Data Editing

MTA Activation

During sim initialization, the JtfC2 object for each side reads the input file and selects the entries for its side. Each line in the file is checked for errors, the results are logged to the Jas message log, and each line that passes edit checks is stored in the JtfC2 of the specified side as a JwMtResourceChange object. JwMtResourceChange objects can be activated in two different ways:

Time Activation

Once the simulation is through with initialization, the JtfC2 object for each side selects all the JwMtResourceChanges that have an explicit deactivateTime value. These JwMtResourceChanges are scheduled for execution at the time specified.

Knowledge Base Activation

JwMtResourceChanges that have a factValue rather than an explicit time are scheduled for immediate execution if the fact that references them turns true in the knowledge base, and the bse is still alive (not dead and not dissolved).

MTA Execution

On Hand Amount Changes

Absolute Amount Changes

There are two possibilities when the onHandChangeType is absolute ('A')– the bse does or does not have the asset.

  1. if the bse does have the asset, the onHand amount of the existing asset is changed to the JwMtResourceChange onHandChangeAmount absolutely.
  2. if the bse does not have the asset, a new asset is created with both the onHand and authorized amounts set to the JwMtResourceChange onHandChangeAmount.
Percentage Changes

Percentage changes are multipliers that specify the resulting amount, not the amount that will be changed. This means, for example, that if you want to reduce an asset by 20%, you should enter 80 in the changeAmount field. Percentage changes are only applied to existing assets.

OnHand Before Percentage Change OnHand After
100 12 12
100 143 143
Relative Amount Changes

Relative amount changes are only applied to existing assets and in no case will the resulting onHand amount be negative.

OnHand Before Relative Change OnHand After
100 12 112
100 -12 88
100 -112 0

Authorized Amount Changes

Absolute Amount Changes

There are two possibilities when the authorizedChangeType is absolute ('A')– the bse does or does not have the asset.

  1. if the bse does have the asset, the authorized amount of the existing asset is changed to the JwMtResourceChange authorizedChangeAmount absolutely.
  2. if the bse does not have the asset, a new asset is created with the authorized amount set to the JwMtResourceChange authorizedChangeAmount and the onHand amount set to zero.
Percentage Changes

Percentage changes are multipliers that specify the resulting amount, not the amount that will be changed. This means, for example, that if you want to reduce an asset by 20%, you should enter 80 in the changeAmount field. Percentage changes are only applied to existing assets.

Authorized Before Percentage Change Authorized After
100 43 43
100 233 233
Relative Amount Changes

Relative amount changes are only applied to existing assets and in no case will the resulting authorized amount be negative.

Authorized Before Relative Change Authorized After
100 12 112
100 -12 88
100 -112 0
Applying Changes to Subordinates

Resource changes to a bse can be applied to A(ll) of a bse's subordinates, N)one of them, or to just the bse's I(mmediate) subordinates.

Value of appliesToSubordinates Change
N Bse only
I Bse and immediate subordinates only
A Bse and all subordinates
Moving Assets to Another Bse

If the toBseId field is not empty and one of toTime or toFactValue is specified, assets removed from the bse identified by bseId will be moved to the bse identified by toBseId if possible. In no case will more than the current amountOnHand of the specified asset held by the bse identified by bseId, reflecting recent attrition, be moved. You can't move what you don't have.

bse idAssetOnhand beforechangetypechangeAmountSpecifiedamountToChangeComputedonhand afterto bse idOnhand beforeonhand after
BLUE_AIRBASE1A10200P25-15050BLUE_AIRBASE2100250
BLUE_AIRBASE1A10200R-50-50150BLUE_AIRBASE2100150
BLUE_AIRBASE1A10200R-250-2000BLUE_AIRBASE2100300
BLUE_AIRBASE1A10200A50-15050BLUE_AIRBASE2100250
BLUE_AIRBASE1A10200A0-2000BLUE_AIRBASE2100300

Knowledge Base

To trigger resource changes from the knowledge base, first set up a fact that will eventually evaluate to true. This fact should logically be put on the JtfC2 knowledge base for the appropriate side. This example uses a ScheduledEvent that goes true at time = 4.0. On the ScheduledEvent, select Process MT Assets as the action.

Then enter a value in the Requested MT Value field that corresponds to the factValue of the JwMtResourceChanges that you want to execute on this fact.

The completed ScheduledEvent looks like this:

When ScheduledEvent1 becomes true at hour 4, both JtfC2s look through the resourceChanges for JwMtResourceChanges that are on their side and have a factValue = 'MT1'. Any JwMtResourceChanges found are scheduled for immediate execution.

Instrumentation and Logging

There is currently no specific MT instrumentation. The results of changes to onHand amounts can be seen in the Resource Accounting instrument. You can see the results of MTA processing in the JAS message log by turning on the MTDebug message category.

To Do