add new task       

Task ID:  961  Need a better way of the GUI finding types, toolboxes and ini xml files    
 
Created by hol353 on 2009-06-18 1:10 PM, 3443 days ago
Project:  User Interface
Category:  Bug
Priority:  high
Assigned to:  hol353  
Status:  closed
Apsim Version:7.0
Your Name:Dean Holzworth
Contact Details:
 
 

show inline images      show change history

 comment 30783 posted by hol353 on 2009-09-01 10:25 AM, 3368 days ago 
DESCRIPTION OF CHANGE:
I have implemented a 'plugin' concept for the user interface. All knowledge about a model is now located within a single XML file. This includes the model parameters (old .ini files) and the former model "types" files.

The consequence of this change is that a model developer can now introduce a new model to the APSIM user interface by simply pointing the user interface to the .xml file. This can be done by selecting "Options" from the simulation tree popup menu. Previously, model developers needed to copy several .xml files into different directories in the c:\program files\apsim70 directory, something that causes all sorts of problems, particularly when users don't have write permissions to their c:\program files directory.


The XML file is structured like this:

<Type name="wheat">
    <MetaData>
    contains all of the user interface related information about how the model should look in the user interface.
    </MetaData>

    <Model>
    contains all of the model parameters (science). This is the existing .ini file parameters.
    </Model>

    <Info>
contains all of the variables and events that the model makes available to the user for reporting. This information is automatically generated by probing the model DLL.
    </Info>
</Type>
 comment 30691 posted by hol353 on 2009-06-18 1:10 PM, 3443 days ago 
Would be good for the GUI to ask for a "package" or "plugin" directory and it will go and recursively find all XML files (types, toolboxes) and configuration XML files under that directory. This is to replace the existing  mechanism where a user can select a toolbox directory under Options.