commentaar createWorm

This commit is contained in:
Leen Dereu
2018-03-11 18:01:43 +01:00
parent ba22d855a8
commit 4f76b7305a

View File

@@ -20,6 +20,11 @@ public class Facade implements IFacade {
* The radius of the new worm (in meter) * The radius of the new worm (in meter)
* @param name * @param name
* the name of the new worm * the name of the new worm
* @post the new worm has the given location, direction, name and radius
* |new Worm(Tuple.create(location), direction, name, radius)
* @throws ModelException
* the location, direction, name or radius is not a valid location, direction, name or radius
* |catch(IllegalArgumentException e)
*/ */
@Override @Override
public Worm createWorm(double[] location, double direction, double radius, String name) throws ModelException { public Worm createWorm(double[] location, double direction, double radius, String name) throws ModelException {