Owner: Znlpi_manager
Objects of this class represent resources available in NLPI. For Python the are anonymous; from dtml they are accessed by reference symbol in the Znlpi_manager.Znlpi_resources dictionary.
Any method available is per default one of Znlpi_baseMethods. Each resource is free to override any of them.
A base resource is a resource with empty needs-list which means that it is not dependent from any other resource. Most of the base resource don't have a non-base method because its actualizing process is outside of the scope of NLPI (e.g. 'iclFile').
However, some base resources have non-base methods. This happens e.g. when only a Zcode file is given by the user instead of an icl file: the needs list of 'zcodeGameCodeFile' gets emptied by Znlpi_manager.Znlpi_removeResource(). In this case the method mus not produce any output but notify with true/false wether it has dome something or not.
Used classes:
Attributes:
- public integer localTimestamp: This is a private timestamp for non-base resources. Base resources (mostly file resources) have their timestamp in their filesystem datetime-attribute.
- public integer serialNumber:
- public list needs: Resources rely recursively on ohter resources. 'needs' lists any resource needed by this particular resource. Other resources may append additional requests on a particular resource instance.
- public string comment: Expensive to compute resources or resources which can produce errors should put return an output message which is stored in that string.
- public string setTimestamp: Different resources have different methods to set a timestamp. By default its just the datetime while calling setTimestamp(). Library classes setting up resources can override this method by their own, e.g. for defining file datetime attributes as timestamp for inform source resources.
- public string timestamp: This method is used to get the timestamp of any resource by its actualize() method.
- public string method: By default this dummy method does nothing. It is overrided by the resource's creator module with its implementation of its own actualization method. It is referenced by function name.