Package jadex.bdi.examples.hunterprey
Class CreatureActionComparator
- java.lang.Object
- 
- jadex.bdi.examples.hunterprey.CreatureActionComparator
 
- 
- All Implemented Interfaces:
- java.util.Comparator
 
 public class CreatureActionComparator extends java.lang.Object implements java.util.ComparatorSort creature actions to execute hunters before preys.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IEnvironmentSpacespaceThe space.
 - 
Constructor SummaryConstructors Constructor Description CreatureActionComparator(IEnvironmentSpace space)Create a new creature action comparator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(java.lang.Object obj1, java.lang.Object obj2)Return a negative number when the first action should be executed before the second.
 
- 
- 
- 
Field Detail- 
spaceprotected IEnvironmentSpace space The space.
 
- 
 - 
Constructor Detail- 
CreatureActionComparatorpublic CreatureActionComparator(IEnvironmentSpace space) Create a new creature action comparator.
 
- 
 
-