net.obsearch.pivots.perm
Class PermHolderDouble
java.lang.Object
net.obsearch.pivots.perm.PermHolderDouble
public class PermHolderDouble
- extends Object
Holds and sorts objects, creates hash codes and sorts the permutations.
- Author:
- amuller
PermHolderDouble
public PermHolderDouble(int size)
addPer
public void addPer(PerDouble p)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
distance
public int distance(PermHolderDouble b)
set
public void set(short pivotId,
PerDouble newPerm)
throws OBException
- set the given pivot id with the new permutation
- Parameters:
pivotId
- newPerm
-
- Throws:
OBException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.