Changes between Version 22 and Version 23 of TemporallyExtendedAttributes


Ignore:
Timestamp:
06/06/13 12:44:40 (7 years ago)
Author:
skyebend
Comment:

added info about repeating v and e in activate methods to set multiple spells per element

Legend:

Unmodified
Added
Removed
Modified
  • TemporallyExtendedAttributes

    v22 v23  
    9393deactivate.vertex.attribute(x, prefix, onset=NULL, terminus=NULL,length=NULL, at=NULL, v=1:network.size(x), dynamic.only=FALSE) 
    9494 }}} 
    95 Behavior sketch: For the activate methods, query the selected entities for a TEA with the specified prefix.  If no such TEA exists and dynamic.only==FALSE, perform a secondary seek with an attribute such that attrname==prefix; if such an attribute is found, convert it to a TEA, and otherwise (or if no such TEA exists and dynamic.only==TRUE) create a TEA with the appropriate prefix.  Once the appropriate TEA is found/created, modify the TEA's spell table to make the attribute active for the specified period, and set the value of the corresponding spell to the contents of the value argument.  (This process is repeated for every element whose attribute is set in this fashion, with semantics corresponding to set.*.attribute.) 
     95Behavior sketch: For the activate methods, query the selected entities for a TEA with the specified prefix.  If no such TEA exists and dynamic.only==FALSE, perform a secondary seek with an attribute such that attrname==prefix; if such an attribute is found, convert it to a TEA, and otherwise (or if no such TEA exists and dynamic.only==TRUE) create a TEA with the appropriate prefix.  Once the appropriate TEA is found/created, modify the TEA's spell table to make the attribute active for the specified period, and set the value of the corresponding spell to the contents of the value argument.  (This process is repeated for every element whose attribute is set in this fashion, with semantics corresponding to set.*.attribute.) Multiple spells can be set for each vertex or edge by including extra values in the time specification (onset, at, etc..) and repeating values in the e or v argument to indicate which element the spells should be added to.  
    9696 
    9797For the deactivate methods, query the selected entities for a TEA with the specified prefix; if no such TEA exists and dynamic.only=FALSE, perform a secondary seek for an attribute with attrname==prefix.  If no acceptable attribute is found, exit.  Otherwise, modify the spell table of the attribute in question to force deactivation over the specified interval (converting the attribute to a TEA if necessary), adjusting the associated value list as necessary.