com.kuka.geometry
Class ConnectionChain.ConnectionIterator
java.lang.Object
com.kuka.geometry.ConnectionChain.ConnectionIterator
- All Implemented Interfaces:
- Iterator<IFrameConnection>
- Enclosing class:
- ConnectionChain
public final class ConnectionChain.ConnectionIterator
- extends Object
- implements Iterator<IFrameConnection>
An iterator over the connections of a ConnectionChain.
If the chain is not connected, the iterator will have no elements.
|
Method Summary |
boolean |
hasNext()
|
boolean |
isNextUp()
While the iterator has more elements (see hasNext()), this method will return true
while the iteration is on the path upwards from source to the root frame, and false if on the
path from root to target. |
IFrameConnection |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isNextUp
public boolean isNextUp()
- While the iterator has more elements (see
hasNext()), this method will return true
while the iteration is on the path upwards from source to the root frame, and false if on the
path from root to target.
- Returns:
true if the connection belongs to the path from source to root, false if
the connection belongs to the path from root to target
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<IFrameConnection>
next
public IFrameConnection next()
- Specified by:
next in interface Iterator<IFrameConnection>
remove
public void remove()
- Specified by:
remove in interface Iterator<IFrameConnection>
Copyright © 2019. All rights reserved.