Professional Documents
Culture Documents
649
output and the parameter val is the system attribution The entity relation can be seen from the system
value. The fun means function, which can calculate some interface. We take the maintenance organization for
value by the parameter. In the System maintenance example to specify the detail. The maintenance
organization, the repair time is the function of organization system can be specified as follow:
equipment-fault model and can be calculate.
o i
supply_request distribution_spare
start
waiting
spare_unsatisfied spare_arrived repairing finished_equipment
i
repair_command ready start need_spare o
prepare fault_diagnose random repair_go_on
repair finised
i team
spare_satisfied
equipment_to_repair
There are two way to use the domain library. One way
is to install the module to compose the support system in
ExSpect modeling and simulation environment. The
other way is to use the module in other application by
ExSpect COM component , which is provide by
ExServer component of ExSpect software package. It
makes the module can be used in the distribution Fig.3 EMSS simulation model in ExSpect
simulation environment (such as High Level Architecture, The ExSpect COM component provides elementary
HLA). function to control the modules in user program. A
The module can be drawn to reuse in the ExSpect simple example in VB.net is as follow.
modeling and simulation environment. Installed the Public WithEvents ExObj As EXSERVLib. CExServ
//declare EXSERVLib. CExServ class libraries
modules by channels and set the parameters, the ExObj = New EXSERVLib. CExServ
//define object of class CExServ
equipment support system can be composed. A typical Call ExObj. Init( PathName, Model, Sys)
organizational maintenance support system model is as // initialize model
Call ExObj. ProduceToken( "placename",token-information, time )
fig.3: // transform information in place
Call ExObj.Continue() //start simulation
Call ExObj. TracePlace(placename)
// trigger the event Present
Private Sub ExObj_Present(TokenlD, Place, Time) Handles
ExObj.Present //Present event handing grogram
User program
End Sub
The complex control function can be implemented by
using other methods and events of class library.
650
We applied the modules on the MAK-RTI to compose
the distribution simulation environment. The sketch map
of software structure is as follows:
651