EDU.gatech.cc.is.clay
Class v_Average_vv

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeVec2
              |
              +--EDU.gatech.cc.is.clay.v_Average_vv

public class v_Average_vv
extends NodeVec2

Average the Vec2 output of two embedded Vec2 nodes.

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

Copyright (c)1997, 1998 Tucker Balch


Field Summary
static boolean DEBUG
           
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
v_Average_vv(NodeVec2 im1, NodeVec2 im2)
          Instantiate a v_Average_vv schema.
 
Method Summary
 Vec2 Value(long timestamp)
          Return a Vec2 representing the average of the two embedded nodes.
 
Methods inherited from class EDU.gatech.cc.is.clay.Node
initTrial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Constructor Detail

v_Average_vv

public v_Average_vv(NodeVec2 im1,
                    NodeVec2 im2)
Instantiate a v_Average_vv schema.
Parameters:
im1 - NodeVec2, an embedded perceptual schema that generates a vector to be averaged.
im2 - NodeVec2, an embedded perceptual schema that generates a vector to be averaged.
Method Detail

Value

public Vec2 Value(long timestamp)
Return a Vec2 representing the average of the two embedded nodes.
Overrides:
Value in class NodeVec2
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the vector average.