package be.iminds.iot.dianne.api.nn.module.dto;

import java.util.List;
import java.util.UUID;

/**
 * Represents an instance of a neural network.
 * 
 * Contains the UUID of the nn instance, the name of the neural network,
 * and the list of ModuleInstances that this nn is composed of.
 * 
 * @author tverbele
 *
 */
public class NeuralNetworkInstanceDTO {

	// UUID of the neural network instance
	public UUID nnId;
	
	// name of the neural network
	// can be used to fetch the NeuralNetworkDTO from DianneRepository
	public String name;
	
	// The list of ModuleInstances that this neural network instance is composed of
	public List<ModuleInstanceDTO> modules;
}

@@ -401,16 +401,22 @@
 %09public 
+final 
 UUID nnI
@@ -418,16 +418,16 @@
 D nnId;%0A
-
 %09%0A%09// na
@@ -527,16 +527,22 @@
 %09public 
+final 
 String n
@@ -637,16 +637,22 @@
 %09public 
+final 
 List%3CMod
@@ -676,10 +676,172 @@
 odules;%0A
+%09%0A%09public NeuralNetworkInstanceDTO(UUID nnId, String name, List%3CModuleInstanceDTO%3E modules)%7B%0A%09%09this.nnId = nnId;%0A%09%09this.name = name;%0A%09%09this.modules = modules;%0A%09%7D%0A
 %7D%0A

add constructor to NeuralNetworkInstanceDTO