Packageorg.omoa.spacemodel.iterator
Classpublic class AttributeFilterIterator
InheritanceAttributeFilterIterator Inheritance AbstractIterator Inheritance Object

Compares an attribute of a SpaceModelEntity against a fixed value and iterates only over the entities where the compare evaluates to "true".

See also

AttributeCompareIterator


Protected Properties
 PropertyDefined By
 Inherited_entities : Vector.<SpaceModelEntity>
AbstractIterator
Public Methods
 MethodDefined By
  
AttributeFilterIterator
  
count():int
[override]
AttributeFilterIterator
  
hasNext():Boolean
[override]
AttributeFilterIterator
  
init(filterFunction:int, attributeKey:String, filterValue:*):void
AttributeFilterIterator
 Inherited
iterator(type:String = null):ISpaceModelIterator
Creates a new ISpaceModelIterator of the given type.
AbstractIterator
  
[override]
AttributeFilterIterator
  
reset():void
[override]
AttributeFilterIterator
 Inherited
type():String
AbstractIterator
Public Constants
 ConstantDefined By
  EQUALS : int = 0
AttributeFilterIterator
  GREATER : int = 1
AttributeFilterIterator
  SMALLER : int = 2
AttributeFilterIterator
Constructor Detail
AttributeFilterIterator()Constructor
public function AttributeFilterIterator(entities:Vector.<SpaceModelEntity>)



Parameters
entities:Vector.<SpaceModelEntity>
Method Detail
count()method
override public function count():int

Returns
int
hasNext()method 
override public function hasNext():Boolean

Returns
Boolean
init()method 
public function init(filterFunction:int, attributeKey:String, filterValue:*):void

Parameters

filterFunction:int
 
attributeKey:String
 
filterValue:*

next()method 
override public function next():SpaceModelEntity

Returns
SpaceModelEntity
reset()method 
override public function reset():void

Constant Detail
EQUALSConstant
public const EQUALS:int = 0

GREATERConstant 
public const GREATER:int = 1

SMALLERConstant 
public const SMALLER:int = 2