From 94a6bae32fb5fda4b37172d4ee4033e15b7cd50f 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. Signed-off-by: Lucas Estrella --- 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 -> 1998 bytes .../Java_CDLL/Student.java | 4 +- .../Java_CDLL/cdllist.java | 14 +- .../tutorial-source-code/Java_CSLL.zip | Bin 1945 -> 1941 bytes .../Java_CSLL/Student.java | 4 +- .../Java_CSLL/csllist.java | 16 +- .../tutorial-source-code/Java_DLL.zip | Bin 1930 -> 1967 bytes .../Java_DLL/Student.java | 6 +- .../tutorial-source-code/Java_DLL/dllist.java | 13 +- .../tutorial-source-code/Java_SLL.zip | Bin 1682 -> 1912 bytes .../Java_SLL/StudentInfo.java | 99 ++++++++++- .../tutorial-source-code/Java_SLL/sllist.java | 25 ++- .../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 ------------- 23 files changed, 147 insertions(+), 795 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..091d7bc1686a034b84435a0940bbbb1c7893da27 100644 GIT binary patch delta 1882 zcmV-g2c`JU56%x4P)h>@6aWAK2mpR{8HY>o;r&OB&Jh2QZ#zp4oYJb{NlT zFryKWzvzNq^#`L-@A0F@k61iUq$U%|!U&W%p$fb{lfhsF9AXfuqjP7ek~Ffl9)2#jJ0GU`uv4Z87Y_OsZ5rNoPP~q zu2~`qZ*yHUK{?6sEI5Va2*nb6^`C(hw6p zD-uMofaOk<^Ss?yLc0;k?X6c`cwmAmzf(y4y|k8>iB*3folRSLwL0so)!vEvLxKiQ z`co=kWx@5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LjrsKUGD&fw3#P)h>@6aWAK2mlRx zOGq=cbFrbh3aOiV?#(Z2!VT zvqLr9){Nq!Kv0#iNzM=cXtg(EFRzkUJPuX`<2{iR_Pu{%yE=@ zv_XYWHV z&5n_<8@a2`93P*y?& z1VXCoi-5Z7yRPn5wl0P7iw}QfD~5nO{R_UqaB5+QkjPZdBQi+Dwa1*p5+&OM;w%cj zbxQ2HyI-b_{H2%Rj*M6UR)!mGb$Rl1Za06n1CNgP3s>eb`_zso-!l58q^-yC?c~~{ z{u?>GdtY!y_E7XjAFG$l86NtUJl*40!V(9N&9~k;V0>|=L;nK zdqQB;d5fP!3b^p2G+LZ!KZ*Ju?|viv^lt&teiEe^(6ylOGt>j=XWf^oJ>+>Vhwxnn zB`5UK3?hqjl|gb*ur)dC;Sb5#OEz0Amoup8E}ON{q#JqKXtVTU&(T-0u%rg0000801FIzOG-rzc4FEC002UhNe4F{4SP#Ue=nuB?E(M*GY"; return $label; 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..b9486ea7b 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java @@ -1,15 +1,15 @@ -/** -* Created by Lucas Estrella on 1/31/2017. -*/ +package Java_CDLL; + import bridges.base.CircDLelement; import bridges.connect.Bridges; -import model.Student; -public class Main { +public class cdllist { - 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"); + final String YOUR_API_KEY = ""; + final String YOUR_USER_ID = ""; + Bridges bridge = new Bridges(6, YOUR_API_KEY, YOUR_USER_ID); Student[] students = { new Student( diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip index 3d05a80aca30523bd1d033a645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;Ds3A^Mp(etBjT0mOKh7|aczq%t8M5C+W$En-7Sn;=>I9sN&UH1%nL6Gc=jXKrQ_OLcdbB~3H;$1{Hl!ns z1G?X~S?7zR^pB35bjI4m^v^cjCau5nu+NPz3i3GkJpaP@>VKUGIn9odup7Cn&mOZU z1@=gTT^xUW??js6m74Uy&53$@&je|)<-pI%oy2-bv3fDYNjSEmx+Q8>btJ) zR<*xs&Lc8N#I?tq!xAOi1L71W-Ssy*a+E{E`41|=u-(hMStbCp4I zQLr^R?BNf|*-JKCEtfN>=`NeK(WD!B+Gw-%V$aqhqNB5gW4(v?kN;3h0Rj{N6aWAK z2mk|nOA1P8T!0>?0{{SNlMn|t9|wC&N`Eh"; return $label; diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java index 360bc4943..234519aa5 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java @@ -1,15 +1,15 @@ -/** -* Created by Lucas Estrella on 1/31/2017. -*/ -import bridges.base.CircDLelement; +package Java_CSLL; + +import bridges.base.CircSLelement; import bridges.connect.Bridges; -import model.Student; -public class Main { +public class csllist { - public static void main(String[] args) throws , ParseException { + public static void main(String[] args) throws Exception { - Bridges bridge = new Bridges(5, "YOUR_API_KEY", "YOUR_USER_ID"); + final String YOUR_API_KEY = ""; + final String YOUR_USER_ID = ""; + Bridges bridge = new Bridges(5, YOUR_API_KEY, YOUR_USER_ID); Student[] students = { new Student( diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip index df50e984e4cf7694cb5f00ca25832decc28589f5..8ce1ab22edc56cb44c4452aec98eb5bd0dca1d1c 100644 GIT binary patch delta 1859 zcmV-J2fX--53dgwP)h>@6aWAK2mq0ST1tw@)^4-|004E77af0XZ`(Ey{$8N}f%7LR z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F<9%Qq&H}z3k*G{xV%wyPYg<%VZ9`ko{^NASg6g+A&}<4d z*>egL(|S6$m=5$-C*WLmuB$mZ>O^~V&ua^&nG-1eXoD1Q0;8U6NK2Xkw6C_=ctQz;nQ_d;l#KN_y`5Zp)PEy~ckd6Ji9Hm((WmOAa(O^o zY>A6Py)POgWTq+NbjzVVR{+VcGHIS7{3NaRe1SxNd`}9DK5y}pC;^v#v_{Jl?I+Ry ziF=;&"; return $label; diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java index 957ad200d..9c0b4209e 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java @@ -1,12 +1,15 @@ -import bridges.base.CircDLelement; +package Java_DLL; + +import bridges.base.DLelement; import bridges.connect.Bridges; -import model.Student; -public class Main { +public class dllist { - public static void main(String[] args) throws , ParseException { + public static void main(String[] args) throws Exception { - Bridges bridge = new Bridges(4, "YOUR_API_KEY", "YOUR_USER_ID"); + final String YOUR_API_KEY = ""; + final String YOUR_USER_ID = ""; + Bridges bridge = new Bridges(4, YOUR_API_KEY, YOUR_USER_ID); Student[] students = { new Student( diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip index c79faa7aa46cd3b6f83b8b03e1138a56c15481d7..53c67f12437993337e451d9708201a885a7a105b 100644 GIT binary patch delta 1803 zcmV+m2lV)o4fqZlP)h>@6aWAK2mq6UT1x%@kE*)^001!z000z|9tIbGy;fmw;zkht zOr-pWDW7aaZ49Jo%Qd=Ql54rRm+ELLovJEY>P8B) z`<}-$Z)es!XVHvJ5I(R6b~_5g!SNCJtrq=n!MQ?aFoy9G!YpDMF11l81cOvU;P(Q* z+X+s+oGY-v-exk2Jd87cyXqew@noJV17pSG32HA&rNqd1?~3{031Q4MdZQ2pCMXTz z$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Hhp9BYCi z("; + + + return $label; + } } \ No newline at end of file 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..d5487ee99 100644 --- a/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java +++ b/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java @@ -1,23 +1,18 @@ -/** +package Java_SLL; + /** * 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 sllist { -public class Main { + public static void main(String[] args) throws Exception { - public static void main(String[] args) throws FileNotFoundException, ParseException { - - - Bridges bridges = new (1, "YOUR_API_KEY", "YOUR_USER_ID"); + final String YOUR_API_KEY = ""; + final String YOUR_USER_ID = ""; + Bridges bridges = new Bridges(3, YOUR_API_KEY, YOUR_USER_ID); /** @@ -86,7 +81,7 @@ public static void main(String[] args) throws FileNotFoundException, ParseExcept el2.setNext(el3); el3.setNext(el4); - SLelement currentElement = el0; + SLelement currentElement = el0; while(currentElement != null){ currentElement.getVisualizer().setColor(currentElement.getValue().getFavoriteColor()); @@ -108,8 +103,8 @@ public static void main(String[] args) throws FileNotFoundException, ParseExcept currentElement = currentElement.getNext(); } - bridge.setDataStructure(el0); - bridge.visualize(); + bridges.setDataStructure(el0); + bridges.visualize(); } 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(); - - - } - - - - - -}