Three new capabilities have been added:
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.
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:
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:
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.
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).
There are two possibilities when the onHandChangeType is absolute ('A')– the bse does or does not have the asset.
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 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 |
There are two possibilities when the authorizedChangeType is absolute ('A')– the bse does or does not have the asset.
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 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 |
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 |
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 id | Asset | Onhand before | changetype | changeAmountSpecified | amountToChangeComputed | onhand after | to bse id | Onhand before | onhand after |
---|---|---|---|---|---|---|---|---|---|
BLUE_AIRBASE1 | A10 | 200 | P | 25 | -150 | 50 | BLUE_AIRBASE2 | 100 | 250 |
BLUE_AIRBASE1 | A10 | 200 | R | -50 | -50 | 150 | BLUE_AIRBASE2 | 100 | 150 |
BLUE_AIRBASE1 | A10 | 200 | R | -250 | -200 | 0 | BLUE_AIRBASE2 | 100 | 300 |
BLUE_AIRBASE1 | A10 | 200 | A | 50 | -150 | 50 | BLUE_AIRBASE2 | 100 | 250 |
BLUE_AIRBASE1 | A10 | 200 | A | 0 | -200 | 0 | BLUE_AIRBASE2 | 100 | 300 |
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.
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.