All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.clay.va_PersistBlend_va

java.lang.Object
   |
   +----EDU.gatech.cc.is.clay.Node
           |
           +----EDU.gatech.cc.is.clay.NodeVec2Array
                   |
                   +----EDU.gatech.cc.is.clay.va_PersistBlend_va

public class va_PersistBlend_va
extends NodeVec2Array
Remembers Vec2s for a given period of time. If a new vector arrives, close in value to one of the existing Vec2s, they are merged according to a "blending".

For detailed information on how to configure behaviors, see the Clay page.

Copyright (c)1997, 1998 Tucker Balch

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Variable Index

 o DEBUG
Turn debug printing on or off.
 o MAX_VECS
Maximum number of Vec2s to be remembered.

Constructor Index

 o va_PersistBlend_va(double, double, double, NodeVec2Array)
Instantiate a va_PersistBlend_va schema.

Method Index

 o Value(long)
Return a Vec2Array that is the persistance.

Variables

 o DEBUG
 public static final boolean DEBUG
Turn debug printing on or off.

 o MAX_VECS
 public static final int MAX_VECS
Maximum number of Vec2s to be remembered.

Constructors

 o va_PersistBlend_va
 public va_PersistBlend_va(double p,
                           double mr,
                           double a,
                           NodeVec2Array im1)
Instantiate a va_PersistBlend_va schema.

Parameters:
p - double, the persistence in seconds.
mr - double, how close things must be to be considered the same.
alpha - double, how much to weight old objects (must be 0=>alpha<=1).
im1 - NodeVec2Array, the node that generates a list of items to filter.

Methods

 o Value
 public Vec2[] Value(long timestamp)
Return a Vec2Array that is the persistance.

Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the array.
Overrides:
Value in class NodeVec2Array

All Packages  Class Hierarchy  This Package  Previous  Next  Index