de.unihalle.informatik.MiToBo.segmentation.levelset.PDE.datatypes
Class MTBLevelsetFunctionPDE.SortedList<EType>

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.levelset.PDE.datatypes.MTBLevelsetFunctionPDE.SortedList<EType>
Type Parameters:
EType - type of the element
Enclosing class:
MTBLevelsetFunctionPDE

protected class MTBLevelsetFunctionPDE.SortedList<EType>
extends Object

A genric class representing a sorted list

Version:
1.0
Author:
martin scharm

Constructor Summary
MTBLevelsetFunctionPDE.SortedList()
          create empty SortetList
 
Method Summary
 int getSize()
          count number of elements
 boolean offer(EType element, double priority)
          add an element to List
 EType poll()
          retrieve element with highest priority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTBLevelsetFunctionPDE.SortedList

public MTBLevelsetFunctionPDE.SortedList()
create empty SortetList

Method Detail

getSize

public int getSize()
count number of elements

Returns:
number of elements

offer

public boolean offer(EType element,
                     double priority)
add an element to List

Parameters:
element - element to add
priority - priority of this element
Returns:
was adding successfull?

poll

public EType poll()
retrieve element with highest priority

Returns:
element with highest priority in list


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.