View: Hide Browser | Browser on the left | Browser on the right | Dictionary
Report:General Info | Operations

Parent Package: archetyped
Class PATHABLE{Abstract}

Direct Subclassifiers:
       EVENT_CONTEXT, ISM_TRANSITION, LOCATABLE, INSTRUCTION_DETAILS
Abstract parent of all classes whose instances are reachable by paths, and which know how to locate child object by paths. The parent feature may be implemented as a function or attribute.


Operations
SignatureConstraintsDocumentation
 item_at_path(a_path : String) : Any 
post: Result <> Void pre: path <>Void and valid_path(a_path)  
The item at a path (relative to this item); only valid for unique paths, i.e. paths that resolve to a single item. 
 items_at_path(a_path : String) : List<Any> 
pre: path <>Void and not path_unique(a_path) post: Result <> Void  
List of items corresponding to a non-unique path path. 
 parent() : PATHABLE  Parent of this node in compositional hierarchy. 
 path_exists(a_path : String) : Boolean  True if the path exists in the data with respect to the current item. 
 path_of_item(a_loc : PATHABLE) : String 
pre: an_item <> Void  
The path to an item relative to the root of this archetyped structure. 
 path_unique(a_path : String) : Boolean 
pre: a_path <> Void and path_exists(a_path)  
True if the path corresponds to a single item in the data.