- public Task(String name, Host[]hosts, double[]computeDurations, double[]messageSizes) {
- parallelCreate(name, hosts, computeDurations, messageSizes);
+ public Task(String name, Host[]hosts, double[]flopsAmount, double[]bytesAmount) {
+ if (flopsAmount == null)
+ throw new NullPointerException("Parallel task flops amounts is null");
+ if (bytesAmount == null)
+ throw new NullPointerException("Parallel task bytes amounts is null");
+ if (hosts == null)
+ throw new NullPointerException("Host list is null");
+ if (name == null)
+ throw new NullPointerException("Parallel task name is null");
+
+ parallelCreate(name, hosts, flopsAmount, bytesAmount);
+ this.name = name;