Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
java.util.List<String> fibres= new java.util.ArrayList<String>();
String Id_cable=input_row.Noeud.trim();
Integer Nb_tube=input_row.TUBES;
Integer Compositio=input_row.COMPOSITIO;
String Id_tube=input_row.Id_tube;
if (Nb_tube>0)
{ // only one tube input
for (int i=1;i<=Nb_tube; i++) {
Id_tube=Id_cable+"T"+i;
if(Compositio>0)
{
String Id_fibre="";
for(int j=1;j<=Compositio;j++){
//a new calculated row,for one input row of tube
// I will have many rows of calculated fibres.
Id_fibre= Id_tube.trim()+"F"+j;
fibres.add(Id_fibre,Id_fibre);
fibres.add(Id_tube,Id_tube);
}
}
}
}
// start part of your Java code
java.util.Map<String,String> fibres= new java.util.HashMap<String,String>();
String Id_cable;
Integer Nb_tube;
Integer Compositio;
String Id_tube;
Id_cable=row1.Noeud.trim();
Nb_tube=row1.TUBES;
Compositio=row1.COMPOSITIO;
Id_tube=row1.Id_tube;
if (Nb_tube>0)
{ // only one tube input
for (int i=1;i<=Nb_tube; i++) {
Id_tube=Id_cable+"T"+i;
if(Compositio>0)
{
String Id_fibre="";
for(int j=1;j<=Compositio;j++){
//a new calculated row,for one input row of tube
// I will have many rows of calculated fibres.
Id_fibre= Id_tube.trim()+"F"+j;
fibres.put(Id_fibre,Id_fibre);
fibres.put(Id_tube,Id_tube);
}
}
}
}
// end of the component, outside/closing the loop
globalMap.put("fibres",fibres);
// start part of your Java code
java.util.Map<String,String> fibres= new java.util.HashMap<String,String>();
String Id_cable;
Integer Nb_tube;
Integer Compositio;
String Id_tube;
Id_cable=row1.Noeud.trim();
Nb_tube=row1.TUBES;
Compositio=row1.COMPOSITIO;
Id_tube=row1.Id_tube;
if (Nb_tube>0)
{ // only one tube input
for (int i=1;i<=Nb_tube; i++) {
Id_tube=Id_cable+"T"+i;
if(Compositio>0)
{
String Id_fibre="";
for(int j=1;j<=Compositio;j++){
//a new calculated row,for one input row of tube
// I will have many rows of calculated fibres.
Id_fibre= Id_tube.trim()+"F"+j;
fibres.put(Id_fibre,Id_fibre);
fibres.put(Id_tube,Id_tube);
}
}
}
}
// end of the component, outside/closing the loop
globalMap.put("fibres",fibres);