Quoting [Peter Tr?ger] (Aug 26 2010):
Hi,
- Raised new issue: What are the default values for JobTemplate atrtributes ? - So far, DRM system defaults are implicitely used when not setting an attribute - Worked with getter / setter - based attribute change, how to realize with JT struct ? - Two options: Notion of "invalid value", default for all attributes OR setting system defaults as struct value defaults - Second option not implementable in all cases, example working directory
sorry for jumping in sideways again, I did not follow the complete discussion I am afraid. But isn't the first option also very difficult to *use*? Again for example for the working directory: an 'invalid value' as default would likely trigger the backend to decline the job request. So, the DRMAA user would need to set all required values explicitely.
So, IMHO, a third option would be to allow for empty values, which are then interpreted as 'unspecified', and set by the backend as needed (e.g. with the system default working directory).
Our "invalid value" and your "empty value" are the same idea, the wording is a little bit weak. Roger called them "magic number" for the numerical case. Your second paragraph precisely describes our current idea.
thanks for the clarification! :-) But yes, your wording is not really fitting IMHO. Like, the boolean triplet proposed for the C binding would be better expressed as 'TRUE, FALSE, UNDEFINED' IMHO. Best, Andre.
/Peter.
-- Nothing is ever easy.