choco.mem
Interface ITrailStorage

All Known Implementing Classes:
StoredBoolTrail, StoredFloatTrail, StoredIntTrail, StoredIntVectorTrail, StoredLongTrail, StoredVectorTrail

public interface ITrailStorage

An interface for classes implementing trails of modifications to objects.

Toutes les classes doivent implementer les fonctions de l'interface pour permettre a l'environnement de deleguer la gestion des mondes pour chaque type de donnee.


Method Summary
 int getSize()
          Retrieving the size of the trail (number of saved past values).
 void resizeWorldCapacity(int newWorldCapacity)
          increase the capacity of the environment to a given number of worlds
 void worldCommit()
          Comitting the current world: merging it with the previous one.
 void worldPop()
          Moving down to the previous world.
 void worldPush()
          Moving up to the next world.
 

Method Detail

worldPush

void worldPush()
Moving up to the next world.

Cette methode doit garder l'etat de la variable avant la modification de sorte a la remettre en etat le cas echeant.


worldPop

void worldPop()
Moving down to the previous world.

Cette methode reattribute a la variable ou l'element d'un tableau sa valeur precedente.


worldCommit

void worldCommit()
Comitting the current world: merging it with the previous one.

Not used yet.


getSize

int getSize()
Retrieving the size of the trail (number of saved past values).


resizeWorldCapacity

void resizeWorldCapacity(int newWorldCapacity)
increase the capacity of the environment to a given number of worlds

Parameters:
newWorldCapacity -