From f7dbed15206151bd0922ad853610281e7e81aabc Mon Sep 17 00:00:00 2001 From: Lucas Estrella Date: Sun, 26 Feb 2017 16:23:04 -0500 Subject: [PATCH] Fixed, cleaned and tested lists examples. --- Hello_World_Tutorials/Java_CDLL.html | 4 +- Hello_World_Tutorials/Java_CSLL.html | 4 +- Hello_World_Tutorials/Java_DLL.html | 4 +- Hello_World_Tutorials/Java_SLL.html | 4 +- .../tutorial-source-code/Java_CDLL.zip | Bin 1997 -> 1954 bytes .../Java_CDLL/cdllist.java | 6 +- .../tutorial-source-code/Java_CSLL.zip | Bin 1945 -> 1892 bytes .../Java_CSLL/csllist.java | 6 +- .../tutorial-source-code/Java_DLL.zip | Bin 1930 -> 1923 bytes .../tutorial-source-code/Java_DLL/dllist.java | 3 +- .../tutorial-source-code/Java_SLL.zip | Bin 1682 -> 1598 bytes .../tutorial-source-code/Java_SLL/sllist.java | 11 +- .../tutorial-source-code/Student.java | 161 ------------------ .../tutorial-source-code/StudentInfo.java | 65 ------- .../tutorial-source-code/StudentProvider.java | 77 --------- .../tutorial-source-code/cdllist.java | 109 ------------ .../tutorial-source-code/csllist.java | 103 ----------- .../tutorial-source-code/dllist.java | 108 ------------ .../tutorial-source-code/sllist.java | 122 ------------- 19 files changed, 13 insertions(+), 774 deletions(-) delete mode 100644 Hello_World_Tutorials/tutorial-source-code/Student.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/StudentInfo.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/StudentProvider.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/cdllist.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/csllist.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/dllist.java delete mode 100644 Hello_World_Tutorials/tutorial-source-code/sllist.java diff --git a/Hello_World_Tutorials/Java_CDLL.html b/Hello_World_Tutorials/Java_CDLL.html index ce0e2635f..c9c822c6f 100644 --- a/Hello_World_Tutorials/Java_CDLL.html +++ b/Hello_World_Tutorials/Java_CDLL.html @@ -137,11 +137,11 @@

Here's the final code:

-

+          

         
-

+              

         
diff --git a/Hello_World_Tutorials/Java_CSLL.html b/Hello_World_Tutorials/Java_CSLL.html index 5158106e6..8e52a9e6d 100644 --- a/Hello_World_Tutorials/Java_CSLL.html +++ b/Hello_World_Tutorials/Java_CSLL.html @@ -146,11 +146,11 @@

Here's the final code:

-

+          

         
-

+              

         
diff --git a/Hello_World_Tutorials/Java_DLL.html b/Hello_World_Tutorials/Java_DLL.html index d09a3edc2..88e8cf661 100644 --- a/Hello_World_Tutorials/Java_DLL.html +++ b/Hello_World_Tutorials/Java_DLL.html @@ -87,11 +87,11 @@

Here's the final code:

-

+          

         
-

+              

         
diff --git a/Hello_World_Tutorials/Java_SLL.html b/Hello_World_Tutorials/Java_SLL.html index 6b7d2adef..2d1b5e06d 100644 --- a/Hello_World_Tutorials/Java_SLL.html +++ b/Hello_World_Tutorials/Java_SLL.html @@ -151,11 +151,11 @@

Here's the final code:

-

+          

         
-

+              

         
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip index 4d1c75a52ae616c037b4c005c1d835ef141f4737..6d00ac6ec2d3c2819bbf22aee9e4a98d1950977d 100644 GIT binary patch delta 1062 zcmV+>1ljw|526nkP)h>@6aWAK2mo7uT1wx2*y*nW008d}kr*C-+iu%95PdJue_;J2 zrG{juO}eeqV7E@vHIis*c9i?8S-#A zqF6jlq$VTD!U&W%q6)k|lflUaaEL+Z-qRF| zOpseMOh{o+nri%innt9%k3>=6<#0V z-fkQGXFm#5Fn|B5cepyIK&i@ znpzMep2BAHYp=7}b*%MNz43iXMVQ2?0_nxz(<$>!7D>vq@?!}7d4lQXzdZ16rcrB^ z&0XXFkD_-ii#w+>;bfSEAY&>lz~R6q`@~ZP#SVp+5N@`1yE_#A@b?J6Z&}<0jT52C z`GSMAz}^jiE-hB>O^pA8HD3Vd$=r5)B!DFgy8F8j-AMjN=l4kd!d7574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!;JvCjAG#afU(iisCb-Puj2b2MJaPOt6GnL!A-qjuQ1c{VJ=r<-%NfO4j zdE_9hBYJ3d%P9sXp#P>=EgaX}=A;>9V{ugvrV^8X6d=(JDSI);4SAgM9bLqdX~-~c zwX54;9WpViFjp*p!Z(es`$AnZ#o4SH>G^T~nzCRfKqq|0Hb zX(e(^*TR3zX~ap*8zgIe>ew_DD)d#>4T=(8SwXjo-JHT>IQ*VUq^QEX<<8*Gzfem9 z1QY-O00;mLdrPzM10Vwq3wujSMGbah+5-RpLJyN32R0xLdrL}xFQvBa0ssIr4*&ob h000000000103ZMW01gC`{{tA4j0X?~F9!es000de3v&Pf diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java index 875d5ddc2..9e2972f14 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java @@ -1,13 +1,9 @@ -/** -* Created by Lucas Estrella on 1/31/2017. -*/ import bridges.base.CircDLelement; import bridges.connect.Bridges; -import model.Student; public class Main { - public static void main(String[] args) throws , ParseException { + public static void main(String[] args) throws Exception{ Bridges bridge = new Bridges(6, "YOUR_API_KEY", "YOUR_USER_ID"); diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip index 3d05a80aca30523bd1d033a645b2aa3d57063aad..c3b152d254f2751947b0f680e3417d5f79509e39 100644 GIT binary patch delta 973 zcmV;;12X)X59AIPP)h>@6aWAK2mr@^T1s?FSR!!)000+}7a@PsFcf}A+J7*4N=8ZA zv2oi#KsQFUanS-uXqqNBIZI8QxU!vf1M%NE&ZSMem3Xk>hc>pqbN!B;6P8Yd)MO}G zoPhF&RDs`TGTJ=^4k=`Md+i=u#6%*?AkzMua*lwtdy{;~SwtdEl_Kvc%g9f&Oh~n% zG}ZWbE?7)b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S2?2YI?epmoBFh;C)i2g~g{- zQ?D%(tS6h2tM&@`pzf_U0IuWoo95_ZaA~@y4n=VxB|e}sRN0DxkZU1bhC2-R!ejh9 zS@m5$hdkAPQ(S!d)Z6O7YK3?>^`G!byLbAy(saQtJ#WLT89{)pP{KiB3kn3=S50c+ zO&q&+(YqJhe*F+`J5?!7L2K+kJCvHS&Po$bT8DGn*-H0Zm|SgZCR&th*G#S#G5Tti zGhCbi9tn&z#vB!#N`I#}Yadq0Mb6qBoALE_G7(*W+H0a}IX8iFCr4#>XXD$M*f6@D z?k=iC>@JtFITUWo%-w2vq-geAw8Kw%#*=LYdnuda79pA0=cX}fv(@6+uFz&VAsrKnmj3~-d^4`R(%p0@6CmW--1P~3klmrT*Gdf6s(S1S!DS0FHlPZ z1QY-O00;mFdrPyj10Vwp1A9wKXk36ErUL)~X_MauHv bridge = new Bridges(5, "YOUR_API_KEY", "YOUR_USER_ID"); diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip index df50e984e4cf7694cb5f00ca25832decc28589f5..6abd0e0c8d47a17f3490b6d25800f4cb61ff8d53 100644 GIT binary patch delta 1006 zcmV@6aWAK2mrx;T1rJDKy8)-000<~7bAa1+JEr+l&~sk8M_wH z#%)5dfv7fVLI}CZAvHKoWjih1#DCv$?ro`IsQ96EbG~!?e0*}s;!z?s8AujJpu7Q9 z;O#LP?4JOK7=-SPivJ~ZP zwn^*v>Cf}4uV+VB#|OV#@x$02s zk^1cWl8P{iQw7qC!KWkUn=+D=Y30Wd`jZ6f%inzG-Hf8vyft^h{(q9*wIp{;Wx`26 z2|>nGSb+T_8|}BADom`9cnRThX}7yV;@`gv@f()pPH3D6O^&A=qy@HnbZU`u@7Cx) zne!=do=ksi*GB?as-U~E3epYbA3HBY`CD6q;WV5o(g$pd$s-L08;QzrPv+L%CLS;M z6*iKMXK>r#aMRWXG?kKk4emn-%Scj99lccHeki z`s?eJkM)e%YH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BiC^Fq{uh1Qfs6}WclmUMdKcU^!Q8zn`)#E>($p3 zu*W6+?fQfBdoJdGH2DuuO9KQH000052mpb(NweJp&H)Y~drL|T2fi!v0{{TN43oJ9 aGy{RTNt5se8v-N*lMMzd2J-~~0002u5fLK* diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java index 5ba1d53d9..e552905f9 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java @@ -4,20 +4,13 @@ */ import bridges.connect.Bridges; import bridges.base.SLelement; -import com.google.gson.JsonObject; -import model.Student; -import org.json.simple.parser.ParseException; -import provider.StudentProvider; -import util.Auth; - -import java.io.FileNotFoundException; public class Main { - public static void main(String[] args) throws FileNotFoundException, ParseException { + public static void main(String[] args) throws Exception { - Bridges bridges = new (1, "YOUR_API_KEY", "YOUR_USER_ID"); + Bridges bridges = new (3, "YOUR_API_KEY", "YOUR_USER_ID"); /** diff --git a/Hello_World_Tutorials/tutorial-source-code/Student.java b/Hello_World_Tutorials/tutorial-source-code/Student.java deleted file mode 100644 index 4a6608f58..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/Student.java +++ /dev/null @@ -1,161 +0,0 @@ - package model; - - /** - * Created by Lucas Estrella on 1/31/2017. - */ - public class Student { - private String studentID, - fullName, - program, - email, - dislikeColor, - favoriteColor, - avatar; - - private boolean visited; - - public boolean isVisited() { - return visited; - } - - public void setVisited(boolean visited) { - this.visited = visited; - } - - private double studentCreditHours; - - /** - * @param studentID - * @param fullName - * @param program - * @param email - */ - public Student(String studentID, - String fullName, - String program, - String email, - String dislikeColor, - String favoriteColor, - double studentCreditHours, - String avatar) { - this.studentID = studentID; - this.fullName = fullName; - this.program = program; - this.email = email; - this.dislikeColor = dislikeColor; - this.favoriteColor = favoriteColor; - this.studentCreditHours = studentCreditHours; - this.avatar = avatar; - } - - /** - * @return studentID - */ - public String getStudentID() { - return studentID; - } - - /** - * @param studentID - */ - public void setStudentID(String studentID) { - this.studentID = studentID; - } - - /** - * @return fullName - */ - public String getFullName() { - return fullName; - } - - /** - * @param fullName - */ - public void setFullName(String fullName) { - this.fullName = fullName; - } - - /** - * @return program - */ - public String getProgram() { - return program; - } - - /** - * @param program - */ - public void setProgram(String program) { - this.program = program; - } - - /** - * @return email - */ - public String getEmail() { - return email; - } - - /** - * @param email - */ - public void setEmail(String email) { - this.email = email; - } - - - /** - * @return favoriteColor - */ - public String getFavoriteColor() { - return favoriteColor; - } - - /** - * @param favoriteColor - */ - public void setFavoriteColor(String favoriteColor) { - this.favoriteColor = favoriteColor; - } - - - public String getAvatar() { - return avatar; - } - - public void setAvatar(String avatar) { - this.avatar = avatar; - } - - public String getDislikeColor() { - return dislikeColor; - } - - public void setDislikeColor(String dislikeColor) { - this.dislikeColor = dislikeColor; - } - - public double getStudentCreditHours() { - return studentCreditHours; - } - - public void setStudentCreditHours(double studentCreditHours) { - this.studentCreditHours = studentCreditHours; - } - - public String getStudentLabel() { - String $label = - fullName + "\n" + - "Email: " + email + "\n" + - "Program: " + program + "\n" + - "Student ID: " + studentID + "\n" + - "Favorite Color: " + favoriteColor + "\n"; - - if(avatar != null) - $label += "<img width='100' src='" + avatar + "'/>"; - - - return $label; - } - } \ No newline at end of file diff --git a/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java b/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java deleted file mode 100644 index 3cc44317f..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java +++ /dev/null @@ -1,65 +0,0 @@ -public class StudentInfo { - private String studentID, fullName, program, email, dislikeColor, favoriteColor, avatar; - private double studentCreditHours; - - public StudentInfo(String studentID, String fullName, String program, String email, String dislikeColor, - String favoriteColor, double studentCreditHours, String avatar) { - this.studentID = studentID; - this.fullName = fullName; - this.program = program; - this.email = email; - this.dislikeColor = dislikeColor; - this.favoriteColor = favoriteColor; - this.studentCreditHours = studentCreditHours; - this.avatar = avatar; - } - public String getStudentID() { - return studentID; - } - public void setStudentID(String studentID) { - this.studentID = studentID; - } - public String getFullName() { - return fullName; - } - public void setFullName(String fullName) { - this.fullName = fullName; - } - public String getProgram() { - return program; - } - public void setProgram(String program) { - this.program = program; - } - - public String getEmail() { - return email; - } - public void setEmail(String email) { - this.email = email; - } - public String getFavoriteColor() { - return favoriteColor; - } - public void setFavoriteColor(String favoriteColor) { - this.favoriteColor = favoriteColor; - } - public String getAvatar() { - return avatar; - } - public void setAvatar(String avatar) { - this.avatar = avatar; - } - public String getDislikeColor() { - return dislikeColor; - } - public void setDislikeColor(String dislikeColor) { - this.dislikeColor = dislikeColor; - } - public double getStudentCreditHours() { - return studentCreditHours; - } - public void setStudentCreditHours(double studentCreditHours) { - this.studentCreditHours = studentCreditHours; - } -} \ No newline at end of file diff --git a/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java b/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java deleted file mode 100644 index 7078abb2c..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java +++ /dev/null @@ -1,77 +0,0 @@ - package provider; - - import model.Student; - - /** - * Created by Lucas Estrella on 2/2/2017. - */ - public class StudentProvider { - - /** - * @param index - * @return student at index - */ - public static Student getStudentAt(int index){ - if(index >= students.length){ - throw new NullPointerException(); - } - return students[index]; - } - - /** - * @return all students - */ - public static Student[] getStudents(){ - return students; - } - - private static Student[] students = { - new Student( - "00000000000", - "Gretel Chaney", - "CS", - "g.chaney@generated.com", - "magenta", - "blue", - 9.0, - "https://randomuser.me/api/portraits/med/women/45.jpg" - ), - new Student( - "00000000001", - "Karol Soderman", - "SIS", - "k.soderman@generated.com", - "magenta", - "red", - 11.0, - "https://randomuser.me/api/portraits/med/women/46.jpg" - ), - new Student( - "00000000002", - "Lamont Kyler", - "BIO", - "l.kyler@generated.com", - "yellow", - "green", - 12.0, - "https://randomuser.me/api/portraits/med/men/80.jpg" - ), - new Student( - "00000000003", - "Gladys Serino", - "CS","g.serino@generated.com", - "blue", - "magenta", - 9.0, - "https://randomuser.me/api/portraits/med/women/2.jpg" - ), - new Student("00000000004", - "Starr Mcginn", - "CS", - "s.mcginn@generated.com", - "red", - "yellow", - 15.0, - "https://randomuser.me/api/portraits/med/men/87.jpg") - }; - } diff --git a/Hello_World_Tutorials/tutorial-source-code/cdllist.java b/Hello_World_Tutorials/tutorial-source-code/cdllist.java deleted file mode 100644 index 7dc2e6192..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/cdllist.java +++ /dev/null @@ -1,109 +0,0 @@ -package cdllist; - -import bridges.base.CircDLelement; -import bridges.connect.Bridges; -import model.Student; - -public class Main { - - public static void main(String[] args) throws , ParseException { - - Bridges bridge = new Bridges(6, "YOUR_API_KEY", "YOUR_USER_ID"); - - Student[] students = { - new Student( - "00000000000", - "Gretel Chaney", - "CS", - "g.chaney@generated.com", - "magenta", - "blue", - 9.0, - "https://randomuser.me/api/portraits/med/women/45.jpg" - ), - new Student( - "00000000001", - "Karol Soderman", - "SIS", - "k.soderman@generated.com", - "magenta", - "red", - 11.0, - "https://randomuser.me/api/portraits/med/women/46.jpg" - ), - new Student( - "00000000002", - "Lamont Kyler", - "BIO", - "l.kyler@generated.com", - "yellow", - "green", - 12.0, - "https://randomuser.me/api/portraits/med/men/80.jpg" - ), - new Student( - "00000000003", - "Gladys Serino", - "CS","g.serino@generated.com", - "blue", - "magenta", - 9.0, - "https://randomuser.me/api/portraits/med/women/2.jpg" - ), - new Student("00000000004", - "Starr Mcginn", - "CS", - "s.mcginn@generated.com", - "red", - "yellow", - 15.0, - "https://randomuser.me/api/portraits/med/men/87.jpg") - }; - - /** - * new CircDLelement<>(label, genericData) - */ - //initializing all elements with empty labels, and with the student data. See Object model.Student.java - CircDLelement el0 = null; - for(int i = 0; i < students.length; i++) { - if(i > 0) { - el0 = insertFront(el0, new CircDLelement("",students[i])); - }else{ - el0 = new CircDLelement("",students[i]); - } - } - - CircDLelement current = el0; - do{ - current.setLabel(current.getValue().getStudentLabel()); - current.getVisualizer().setColor(current.getValue().getFavoriteColor()); - - current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor()); - current.getLinkVisualizer(current.getNext()).setThickness(current.getValue().getStudentCreditHours()*.75); - - current.getLinkVisualizer(current.getPrev()).setColor(current.getValue().getDislikeColor()); - current.getLinkVisualizer(current.getPrev()).setThickness(current.getValue().getStudentCreditHours()*.75); - - current = current.getNext(); - }while(current.getIdentifier() != el0.getIdentifier()); - - bridge.setDataStructure(el0); - bridge.visualize(); - - - } - - - public static CircDLelement insertFront(CircDLelement tailElement, - CircDLelement newElement){ - CircDLelement tailNextElement = tailElement.getNext(); - - newElement.setNext(tailNextElement); - newElement.setPrev(tailElement); - - tailNextElement.setPrev(newElement); - tailElement.setNext(newElement); - return tailElement; - } - -} diff --git a/Hello_World_Tutorials/tutorial-source-code/csllist.java b/Hello_World_Tutorials/tutorial-source-code/csllist.java deleted file mode 100644 index a95513631..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/csllist.java +++ /dev/null @@ -1,103 +0,0 @@ -package csllist; - -import bridges.base.CircDLelement; -import bridges.connect.Bridges; -import model.Student; - -public class Main { - - public static void main(String[] args) throws , ParseException { - - Bridges bridge = new Bridges(5, "YOUR_API_KEY", "YOUR_USER_ID"); - - Student[] students = { - new Student( - "00000000000", - "Gretel Chaney", - "CS", - "g.chaney@generated.com", - "magenta", - "blue", - 9.0, - "https://randomuser.me/api/portraits/med/women/45.jpg" - ), - new Student( - "00000000001", - "Karol Soderman", - "SIS", - "k.soderman@generated.com", - "magenta", - "red", - 11.0, - "https://randomuser.me/api/portraits/med/women/46.jpg" - ), - new Student( - "00000000002", - "Lamont Kyler", - "BIO", - "l.kyler@generated.com", - "yellow", - "green", - 12.0, - "https://randomuser.me/api/portraits/med/men/80.jpg" - ), - new Student( - "00000000003", - "Gladys Serino", - "CS","g.serino@generated.com", - "blue", - "magenta", - 9.0, - "https://randomuser.me/api/portraits/med/women/2.jpg" - ), - new Student("00000000004", - "Starr Mcginn", - "CS", - "s.mcginn@generated.com", - "red", - "yellow", - 15.0, - "https://randomuser.me/api/portraits/med/men/87.jpg") - }; - - /** - * new CircSLelement<>(label, genericData) - */ - CircSLelement el0 = new CircSLelement("",students[0]); - CircSLelement current = el0; - - for(int i = 1; i < students.length; i++){ - current.setNext(new CircSLelement("", students[i])); - - //handles the last element - if(i == students.length-1){ - //getting the last element - current = current.getNext(); - - //point the last element to the first element, so the list becomes circular. - current.getNext().setNext(el0); - } - - //set the current element to be the next element - current = current.getNext(); - } - - - current = el0; - - do{ - current.setLabel(current.getValue().getStudentLabel()); - current.getVisualizer().setColor(current.getValue().getFavoriteColor()); - - current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor()); - current.getLinkVisualizer(current.getNext()).setThickness(current.getValue().getStudentCreditHours()*0.75); - - current = current.getNext(); - }while(current.getIdentifier() != el0.getIdentifier()); - - bridge.setDataStructure(el0); - bridge.visualize(); - - } - -} diff --git a/Hello_World_Tutorials/tutorial-source-code/dllist.java b/Hello_World_Tutorials/tutorial-source-code/dllist.java deleted file mode 100644 index 7c658fa11..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/dllist.java +++ /dev/null @@ -1,108 +0,0 @@ -package dllist; - -import bridges.base.CircDLelement; -import bridges.connect.Bridges; -import model.Student; - -public class Main { - - public static void main(String[] args) throws , ParseException { - - Bridges bridge = new Bridges(4, "YOUR_API_KEY", "YOUR_USER_ID"); - - Student[] students = { - new Student( - "00000000000", - "Gretel Chaney", - "CS", - "g.chaney@generated.com", - "magenta", - "blue", - 9.0, - "https://randomuser.me/api/portraits/med/women/45.jpg" - ), - new Student( - "00000000001", - "Karol Soderman", - "SIS", - "k.soderman@generated.com", - "magenta", - "red", - 11.0, - "https://randomuser.me/api/portraits/med/women/46.jpg" - ), - new Student( - "00000000002", - "Lamont Kyler", - "BIO", - "l.kyler@generated.com", - "yellow", - "green", - 12.0, - "https://randomuser.me/api/portraits/med/men/80.jpg" - ), - new Student( - "00000000003", - "Gladys Serino", - "CS","g.serino@generated.com", - "blue", - "magenta", - 9.0, - "https://randomuser.me/api/portraits/med/women/2.jpg" - ), - new Student("00000000004", - "Starr Mcginn", - "CS", - "s.mcginn@generated.com", - "red", - "yellow", - 15.0, - "https://randomuser.me/api/portraits/med/men/87.jpg") - }; - - /** - * new DLelement<>(label, genericData) - */ - //initializing all elements with empty labels, and with the student data. See Object model.Student.java - DLelement el0 = null; - - for(int i = 0; i < students.length; i++){ - if(i > 1){ - el0 = insertFront(el0, new DLelement<>("",students[i])); - }else if(i == 0){ - el0 = new DLelement<>("",students[0]); - el0.setNext(new DLelement<>("",students[1])); - } - } - - DLelement current = el0; - while(current != null){ - current.setLabel(current.getValue().getStudentLabel()); - current.getVisualizer().setColor(current.getValue().getFavoriteColor()); - - if(current.getNext() != null)current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor()); - if(current.getPrev() != null)current.getLinkVisualizer(current.getPrev()).setColor(current.getValue().getDislikeColor()); - - current = current.getNext(); - } - - bridge.setDataStructure(el0); - bridge.visualize(); - - - } - - - public static DLelement insertFront(DLelement tail, - DLelement newElement){ - DLelement tailNext = tail.getNext(); - - newElement.setNext(tailNext); - newElement.setPrev(tail); - - tailNext.setPrev(newElement); - tail.setNext(newElement); - return tail; - } - -} diff --git a/Hello_World_Tutorials/tutorial-source-code/sllist.java b/Hello_World_Tutorials/tutorial-source-code/sllist.java deleted file mode 100644 index a115c16d2..000000000 --- a/Hello_World_Tutorials/tutorial-source-code/sllist.java +++ /dev/null @@ -1,122 +0,0 @@ -package sllist; -/** - * Created by Lucas Estrella on 1/31/2017. - * lestrell@uncc.edu - */ -import bridges.connect.Bridges; -import bridges.base.SLelement; -import com.google.gson.JsonObject; -import model.Student; -import org.json.simple.parser.ParseException; -import provider.StudentProvider; -import util.Auth; - -import java.io.FileNotFoundException; - -public class Main { - - public static void main(String[] args) throws FileNotFoundException, ParseException { - - - Bridges bridges = new (1, "YOUR_API_KEY", "YOUR_USER_ID"); - - - /** - * new SLelement<>(label, genericData) - */ - //initializing all elements with empty labels, and with the student data. See Object model.Student.java - SLelement el0 = new SLelement( "", - new StudentInfo( - "00000000000", - "Gretel Chaney", - "CS", - "g.chaney@generated.com", - "magenta", - "blue", - 9.0, - "https://randomuser.me/api/portraits/med/women/45.jpg" - )); - SLelement el1 = new SLelement( "", - new StudentInfo( - "00000000001", - "Karol Soderman", - "SIS", - "k.soderman@generated.com", - "magenta", - "red", - 11.0, - "https://randomuser.me/api/portraits/med/women/46.jpg" - )); - SLelement el2 = new SLelement( "", - new StudentInfo( - "00000000002", - "Lamont Kyler", - "BIO", - "l.kyler@generated.com", - "yellow", - "green", - 12.0, - "https://randomuser.me/api/portraits/med/men/80.jpg" - )); - SLelement el3 = new SLelement( "", - new StudentInfo( - "00000000003", - "Gladys Serino", - "CS", - "g.serino@generated.com", - "blue", - "magenta", - 9.0, - "https://randomuser.me/api/portraits/med/women/2.jpg" - )); - SLelement el4 = new SLelement( "", - new StudentInfo( - "00000000004", - "Starr Mcginn", - "CS", - "s.mcginn@generated.com", - "red", - "yellow", - 15.0, - "https://randomuser.me/api/portraits/med/men/87.jpg" - )); - - //Linking the Singly LinkedList Element1 -> Element2 -> Element3 -> Element4 -> NULL - el0.setNext(el1); - el1.setNext(el2); - el2.setNext(el3); - el3.setNext(el4); - - SLelement currentElement = el0; - - while(currentElement != null){ - currentElement.getVisualizer().setColor(currentElement.getValue().getFavoriteColor()); - - if(currentElement.getNext() != null){ - - currentElement - .getLinkVisualizer(currentElement.getNext()) - .setColor(currentElement.getValue().getDislikeColor()); - - currentElement - .getLinkVisualizer(currentElement.getNext()) - .setThickness(currentElement.getValue().getStudentCreditHours() * 0.75);//75 percent thinner - - } - - currentElement.setLabel(currentElement.getValue().getStudentLabel()); - - currentElement = currentElement.getNext(); - } - - bridge.setDataStructure(el0); - bridge.visualize(); - - - } - - - - - -}