Package org.jppf.node.protocol
Interface PositionalElement<T extends PositionalElement<T>>
- Type Parameters:
T- the type of this element.
- All Known Implementing Classes:
AbstractTask,AbstractTaskNode,CommandLineTask,CrossoverTask,FitnessTask,JPPFAnnotatedTask,JPPFExceptionResult,JPPFExceptionResultEx,JPPFTask,ScriptedTask,TaskGraph.Node
public interface PositionalElement<T extends PositionalElement<T>>
Interface representig an object that cn be accessed by its position in an ordered set.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the position of this element in its container.default TsetPosition(int position) Set the position of this element in its container.
-
Method Details
-
getPosition
int getPosition()Returns the position of this element in its container.- Returns:
- the position of this element as an
int.
-
setPosition
Set the position of this element in its container.- Parameters:
position- the position of this task as anint.- Returns:
- this element, for method call chaining.
-