Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • IArgument needs a mechanism for identifying the type of argument e.g. File, Path, int double etc Very usful for providing customised GUI functionality
    Various solutions were proposed (see below). Disadvantage of having an enumeration in the Standard is that it can not be extended easily. An object type definition would be more specific.
    Rob K. concludes that Alterra's approach works quite well for what we want. The approach is based on recognized strings in the key of the Argument.
    Action: Rob K. will provide an example.
    Done June 10: Please see the IArgumentV2.java class file that I have attached to these meeting notes. This interface documents all the extensions we made to standard OpenMI 1.2 IArgument interface to make it more usable for our (GUI related) purposes (some time ago). The comments in the source file should provide all the explanation needed (smile)
    We have studied the example and various propositions, and choose (thumbs up) for to the following solution:
    Code Block
        public interface IArgument : IIdentifiable, IDescribable
        {
    	        Type ValueType { get; }
    	        bool IsRequired { get; }
            bool IsReadOnly { get; }
            object Value { get; set; }
    	        object DefaultValue { get; }
            IList<object> GetPossibleValues();
    	        string Characteristics { get; }
        }
    

...