Skip to content
Snippets Groups Projects
Commit 1ea9a40f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

update fromString for new onelab protocol

parent b31367a1
No related branches found
No related tags found
No related merge requests found
......@@ -65,13 +65,12 @@ public class Parameter {
setLabel(infos[pos++]);// label
pos++;// help
pos++;// never change
pos++;// changed
if(Integer.parseInt(infos[pos++]) != 1)return -1;// visible
this.setReadOnly((infos[pos++].equals("1")));// read only
int nAttributes = Integer.parseInt(infos[pos++]);// number of attributes
pos+=(nAttributes*2);// key+value
int nClients = Integer.parseInt(infos[pos++]);// number of client
pos+=nClients;// clients
pos+=(nClients*2);// client+changed
this.update();
return pos;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment