Class GraphAgentComparators

java.lang.Object
com.amalgamasimulation.graphagent.GraphAgentComparators

public abstract class GraphAgentComparators extends Object
Abstract class containing comparators used in graph agent library, namely:

In cases with comparatively high or low agent speed it may be required to compare distances, velocities and time periods with different tolerances. This class allows to set such tolerances individually for all these 2 types of comparison.

The code below shows how change the comparison tolerance: GraphAgentComparators.compareVelocity().setEpsilon(1E-9);

Author:
Andrey Malykhanov