Skip to content
Snippets Groups Projects
Commit 84cd0f78 authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

Type-checker was added

parent 14cb767c
Branches
No related tags found
No related merge requests found
......@@ -74,6 +74,12 @@ class Node{
if(typeArray == null){
this.typeArray = new byte[6];
}
if((type & 1) == 1) this.setInFreeSpace(Byte.parseByte("1"));
if((type & 2) == 2) this.setInFreeSpace(Byte.parseByte("2"));
if((type & 4) == 4) this.setInFreeSpace(Byte.parseByte("4"));
if((type & 8) == 8) this.setInFreeSpace(Byte.parseByte("8"));
if((type & 16) == 16) this.setInFreeSpace(Byte.parseByte("16"));
if((type & 32) == 32) this.setInFreeSpace(Byte.parseByte("32"));
this.setInFreeSpace(type);
}
......@@ -183,7 +189,8 @@ class Graph{
String[] splitText = Utils.dividedText(data.get(i), 3);
Node node = nodes.get(Integer.parseInt(splitText[0]));
node.setType(Byte.parseByte(splitText[1]));
node.setName(splitText[2].substring(1,splitText[2].length()-1));
//node.setName(splitText[2].substring(1,splitText[2].length()-1));
node.setName(splitText[2]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment