net.obsearch.pivots.perm
Class PermHolderDouble

java.lang.Object
  extended by net.obsearch.pivots.perm.PermHolderDouble

public class PermHolderDouble
extends Object

Holds and sorts objects, creates hash codes and sorts the permutations.

Author:
amuller

Constructor Summary
PermHolderDouble(int size)
           
 
Method Summary
 void addPer(PerDouble p)
           
 int distance(PermHolderDouble b)
           
 boolean equals(Object o)
           
 int hashCode()
           
 void set(short pivotId, PerDouble newPerm)
          set the given pivot id with the new permutation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermHolderDouble

public PermHolderDouble(int size)
Method Detail

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.