EDU.gatech.cc.is.clay
Class v_Average_va
java.lang.Object
|
+--EDU.gatech.cc.is.clay.Node
|
+--EDU.gatech.cc.is.clay.NodeVec2
|
+--EDU.gatech.cc.is.clay.v_Average_va
- public class v_Average_va
- extends NodeVec2
This node generates a vector that is the average of the
incoming list.
For detailed information on how to configure behaviors, see the
Clay page.
Copyright
(c)1997, 1998 Tucker Balch
Field Summary |
static boolean |
DEBUG
|
Method Summary |
Vec2 |
Value(long timestamp)
Return a Vec2 representing the direction to go away from
the detected hazards. |
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 |
DEBUG
public static final boolean DEBUG
v_Average_va
public v_Average_va(NodeVec2Array im1)
- Instantiate a v_Average_va schema.
- Parameters:
im1
- NodeVec2Array, the embedded node that generates a list
of items to average.
Value
public Vec2 Value(long timestamp)
- Return a Vec2 representing the direction to go away from
the detected hazards.
- Overrides:
- Value in class NodeVec2
- Parameters:
timestamp
- long, only get new
information if timestamp > than last call or timestamp == -1.- Returns:
- the average vector.