executeModel
public static RecordToken executeModel(java.net.URL url,
RecordToken args,
java.lang.String[] resultLabels)
throws IllegalActionException
This method takes a url specifying the model to be execute. The
args argument is a record token that will be used to set
corresponding attributes of the specified model by
naming match, (see _setAttribute() method). The results of
executing the model is returned back by setting the value of some
Attributes. In particular, only Attributes
that have name matches the resultLabels are returned.
The return result is a RecordToken which has the resultLabels as
its field.
- Parameters:
url
- The Model url.
args
- A set of attributes of the specified model.
resultLabels
- Labels of the returned result.
- Returns:
- The execution result.
- Throws:
IllegalActionException
- If can not parse the url
or failed to execute the model.