-/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
throw new IllegalArgumentException("Task flopsAmount (" + flopsAmount + ") cannot be negative");
if (bytesAmount<0)
throw new IllegalArgumentException("Task bytesAmount (" + bytesAmount + ") cannot be negative");
-
+
create(name, flopsAmount, bytesAmount);
-
+
this.name = name;
this.messageSize = bytesAmount;
}
throw new IllegalArgumentException("Host list is null");
if (name == null)
throw new IllegalArgumentException("Parallel task name is null");
-
+
parallelCreate(name, hosts, flopsAmount, bytesAmount);
this.name = name;
}