load
load |
Purpose
Synopsis
procedure load(mo:Model, bimf:string)
procedure load(mo:Model, bimf:string, opt:string, pwd:string, pke:string, kls:string)
procedure load(mi:Mosel, mo:Model, bimf:string)
procedure load(mi:Mosel, mo:Model, bimf:string, opt:string, pwd:string, pke:string, kls:string)
Arguments
mo
|
Model object to be initialized
|
||||||||
bimf
|
Bim file name
|
||||||||
mi
|
The instance on which the model will be run
|
||||||||
opt
|
Loading options (may be separated by spaces or
'-' symbols):
|
||||||||
opt
|
Options
|
||||||||
pass
|
Password or password file (for encrypted bim files)
|
||||||||
pke
|
Private key file (for encrypted bim files)
|
||||||||
kls
|
File of public keys
|
Further information
1. This procedure initializes the model
mo with the bim file
bimf. If
mo has already been initialized, the model it references is unloaded before trying to load the new file (note that this operations fails if the model is running). If the file
bimf cannot be accessed or one of the required modules cannot be loaded, the procedure generates an IO error (which may be intercepted if the control parameter
ioctrl is true).
2. When loading a model from a separate Mosel instance, it is important to keep in mind that the operation is performed in the environment of this instance (in particular its current working directory) and file names should be specified appropriately (the
rmt: IO driver can be particularly helpful in this context).
3. The argument
kls is a list of public key files (
i.e. each line of the file is a key file name): when a signed bim file is loaded, its signature is checked with the keys listed in this file. If this argument is not specified, the signing key is searched in the default public keys directory located at
getparam("ssl_dir")+"/pubkeys".
Related topics
Module