Class CloneHelper
java.lang.Object
fr.uga.miage.pc.dilemme.back.strategie.CloneHelper
public final class CloneHelper
extends java.lang.Object
This class is used in order to create a clone of a Strategie for the creation of Confrontation
- Since:
- 3.0
-
Constructor Summary
Constructors Constructor Description CloneHelper() -
Method Summary
Modifier and Type Method Description static IStrategieclone(IStrategie strategie)Create the a clone of the Strategie with the Strategie given in parameterstatic IStrategieclone(java.lang.String name)Create the a clone of the Strategie with the code given in parameterstatic IStrategiecloneTest(IStrategie strategie)Deprecated.This system isn't finished yet
-
Constructor Details
-
CloneHelper
public CloneHelper()
-
-
Method Details
-
cloneTest
Deprecated.This system isn't finished yetCreate a clone of the Strategie given by using the private class StrategieClone- Parameters:
strategie- - Strategie to clone- Returns:
- The clone of the Strategie
- Since:
- 3.0
-
clone
Create the a clone of the Strategie with the code given in parameter- Parameters:
name- The code of the strategie to clone- Returns:
- Clone of the Strategie
- Throws:
java.lang.Exception- If the name of the strategie isn't known- Since:
- 3.0
-
clone
Create the a clone of the Strategie with the Strategie given in parameter- Parameters:
IStrategie- The Strategie to clone- Returns:
- Clone of the Strategie
- Throws:
java.lang.Exception- If the instance is unknow- Since:
- 3.0
-