snakeprogram3d
Class Snake
java.lang.Object
snakeprogram3d.Snake
- All Implemented Interfaces:
- java.lang.Iterable<java.lang.Integer>
public class Snake
- extends java.lang.Object
- implements java.lang.Iterable<java.lang.Integer>
Basic snake, essentially a tree map containing all of the points of the snakes.
Copyright (c) 2010, Lehigh University
All rights reserved.
see COPYING for license.
Constructor Summary |
Snake()
|
Snake(java.util.ArrayList<double[]> coord,
int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public int TYPE
Snake
public Snake()
Snake
public Snake(java.util.ArrayList<double[]> coord,
int i)
getCoordinates
public java.util.ArrayList<double[]> getCoordinates(int i)
findLength
public double findLength(int time)
getSize
public int getSize(int frame)
exists
public boolean exists(int frame)
clearSnake
public void clearSnake(int frame)
isEmpty
public boolean isEmpty()
addCoordinates
public void addCoordinates(int frame,
java.util.ArrayList<double[]> Xs)
iterator
public java.util.Iterator<java.lang.Integer> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<java.lang.Integer>