Packagenet.systemeD.halcyon.connection
Classpublic class EntityCollection
InheritanceEntityCollection Inheritance Entity Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
 Inheritedconnection : Connection
Connection to which this entity belongs.
Entity
 Inheriteddeleted : Boolean = false
Entity
  entities : Array
[read-only]
EntityCollection
 InheritedhasParents : Boolean
Whether this entity has any parents.
Entity
 InheritedhasParentWays : Boolean
Whether this entity has any parents that are Ways.
Entity
 Inheritedid : Number
OSM ID.
Entity
  isDirty : Boolean
[read-only]
EntityCollection
 Inheritedloaded : Boolean
Is entity fully loaded, or is it just a placeholder reference (as a relation member)?
Entity
 Inheritedlocked : Boolean = false
Lock against purging when off-screen
Entity
 Inheritedmemberships : Array
Returns all relations that this Entity is part of, as array of {relation, position, role}, sorted by position.
Entity
 InheritednumParentWays : uint
How many parents are Ways?
Entity
 InheritedparentObjects : Array
All parents of this entity.
Entity
  parentRelations : Array
[read-only]
EntityCollection
 InheritedparentsLoaded : Boolean = true
Have all its parents (ie, relations that contain this object as a member, ways that contain this node) been loaded into memory
Entity
 InheritedparentWays : Array
Get array of all Ways of which this object (presumably a node) is a child.
Entity
 Inheritedstatus : String
Entity
 Inheritedtimestamp : String
Most recent modification of the entity (from OSM API).
Entity
 Inheriteduid : Number
User ID who last edited this entity (from OSM API).
Entity
 Inheritedversion : uint
Current version number.
Entity
Public Methods
 MethodDefined by
  
EntityCollection(entities:Array)
EntityCollection
 Inherited
addParent(parent:Entity):void
Create parent link from this entity to another.
Entity
 Inherited
countParentObjects(within:Object):uint
How many parents does this entity have that satisfy the "within" constraint?
Entity
 Inherited
findParentRelationsOfType(type:String, role:String = null):Array
Returns parents that are relations, and of the specified type, and of which this entity is the correct role (if provided).
Entity
  
getDescription():String
EntityCollection
  
EntityCollection
  
getTag(key:String):String
EntityCollection
  
getTagArray():Array
EntityCollection
  
EntityCollection
  
getTagsCopy():Object
EntityCollection
  
getTagsHash():Object
EntityCollection
  
getType():String
EntityCollection
  
EntityCollection
 Inherited
hasParent(entity:Entity):Boolean
Whether 'entity' is a parent of this Entity.
Entity
  
hasTags():Boolean
EntityCollection
 Inherited
isDeleted():Boolean
Whether entity is marked deleted.
Entity
 Inherited
isEmpty():Boolean
Whether entity is "empty" - to be overridden by subclass.
Entity
 Inherited
isType(str:String):Boolean
Compare type against supplied string
Entity
  
isUneditedTiger():Boolean
EntityCollection
  
markClean():void
EntityCollection
  
markDirty():void
EntityCollection
 Inherited
mergeTags(source:Entity, performAction:Function):Boolean
Copy tags from another entity into this one, creating "key=value1; value2" pairs if necessary.
Entity
 Inherited
nullify():void
Free up memory by converting entity to a dummy entity, for entities that we no longer need but which are part of a still-in-memory relation
Entity
 Inherited
remove(performAction:Function):void
Delete entity - must be overridden.
Entity
 Inherited
removeFromParents(performAction:Function):void
Entity
 Inherited
removeParent(parent:Entity):void
Remove parent link.
Entity
  
renameTag(oldKey:String, newKey:String, performAction:Function):void
EntityCollection
 Inherited
renumber(newID:Number, newVersion:uint):void
Assign a new ID and version.
Entity
 Inherited
resume():void
Resume redrawing of the object
Entity
 Inherited
sameTags(entity:Entity):Boolean
Compare tags between two entities.
Entity
 Inherited
setDeletedState(isDeleted:Boolean):void
Mark entity as deleted.
Entity
 Inherited
setStatus(s:String):void
Change entity status.
Entity
  
setTag(key:String, value:String, performAction:Function):void
EntityCollection
 Inherited
suspend():void
Temporarily prevent redrawing of the object.
Entity
  
tagIs(key:String, value:String):Boolean
EntityCollection
 Inherited
updateEntityProperties(version:uint, tags:Object, loaded:Boolean, parentsLoaded:Boolean, uid:Number, timestamp:String):void
Set a bunch of properties in one hit.
Entity
 Inherited
within(left:Number, right:Number, top:Number, bottom:Number):Boolean
Entity
Protected Methods
 MethodDefined by
 Inherited
Implement nullifybehaviour: delete tags, etc.
Entity
Property detail
entitiesproperty
entities:Array  [read-only]Implementation
    public function get entities():Array
isDirtyproperty 
isDirty:Boolean  [read-only]Implementation
    public function get isDirty():Boolean
parentRelationsproperty 
parentRelations:Array  [read-only]Implementation
    public function get parentRelations():Array
Constructor detail
EntityCollection()constructor
public function EntityCollection(entities:Array)Parameters
entities:Array
Method detail
getDescription()method
public override function getDescription():String

Returns
String
getRelationMemberships()method 
public override function getRelationMemberships():Array

Returns
Array
getTag()method 
public override function getTag(key:String):StringParameters
key:String

Returns
String
getTagArray()method 
public override function getTagArray():Array

Returns
Array
getTagList()method 
public override function getTagList():TagList

Returns
TagList
getTagsCopy()method 
public override function getTagsCopy():Object

Returns
Object
getTagsHash()method 
public override function getTagsHash():Object

Returns
Object
getType()method 
public override function getType():String

Returns
String
hasInterestingTags()method 
public override function hasInterestingTags():Boolean

Returns
Boolean
hasTags()method 
public override function hasTags():Boolean

Returns
Boolean
isUneditedTiger()method 
public override function isUneditedTiger():Boolean

Returns
Boolean
markClean()method 
public override function markClean():void
markDirty()method 
public override function markDirty():void
renameTag()method 
public override function renameTag(oldKey:String, newKey:String, performAction:Function):voidParameters
oldKey:String
 
newKey:String
 
performAction:Function
setTag()method 
public override function setTag(key:String, value:String, performAction:Function):voidParameters
key:String
 
value:String
 
performAction:Function
tagIs()method 
public override function tagIs(key:String, value:String):BooleanParameters
key:String
 
value:String

Returns
Boolean