SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
MultiDimComparable.java
1/*
2 * Class: MultiDimComparable
3 * Description: Represents an object which can be compared in many dimensions.
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10
11 * SSJ is free software: you can redistribute it and/or modify it under
12 * the terms of the GNU General Public License (GPL) as published by the
13 * Free Software Foundation, either version 3 of the License, or
14 * any later version.
15
16 * SSJ is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20
21 * A copy of the GNU General Public License is available at
22 <a href="http://www.gnu.org/licenses">GPL licence site</a>.
23 */
24package umontreal.ssj.util.multidimsort;
25
56public interface MultiDimComparable<T> {
57
65 public int getStateDimension();
66
78 public int compareTo(T other, int j);
79
80}
This interface is an extension (or variant) of the Comparable interface in Java.
int compareTo(T other, int j)
Similar to compareTo in the class Comparable, except that one specifies the index of the criterion o...
int getStateDimension()
This method returns the number of coordinates for which the method compareTo can be invoked for this...