jcolibri.method.revise
Class DefineNewIdsMethod

java.lang.Object
  extended by jcolibri.method.revise.DefineNewIdsMethod

public class DefineNewIdsMethod
extends java.lang.Object

Defines new ids for the case components of a case. This way it can be stored in the persistence media without overwriting an existing case.

Author:
Juan A. Recio-Garcia

Constructor Summary
DefineNewIdsMethod()
           
 
Method Summary
static void defineNewIdsMethod(CBRCase _case, java.util.HashMap<Attribute,java.lang.Object> componentsKeys)
          Changes the values of the ID attributes of a case with new ones.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefineNewIdsMethod

public DefineNewIdsMethod()
Method Detail

defineNewIdsMethod

public static void defineNewIdsMethod(CBRCase _case,
                                      java.util.HashMap<Attribute,java.lang.Object> componentsKeys)
                               throws ExecutionException
Changes the values of the ID attributes of a case with new ones. This method traverses the CaseComponent tree of a case modifing the values of the ids attributes with new objects.

Parameters:
_case - to modify the ids
componentsKeys - stores the new values of the IDs attributes
Throws:
ExecutionException

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es