Bridges-Java-2.3.2
2.3.2
Bridges(JavaAPI)
|
Public Member Functions | |
Bridges () | |
Bridges (int assignment, String appl_id, String username) | |
void | setTitle (String title) |
void | setDescription (String descr) |
ADTVisualizer< K, E > | getVisualizer () |
void | setVisualizer (ADTVisualizer< K, E > visualizer) |
void | setDataStructure (Element< E >[] el_array, int size) |
void | setDataStructure (Array< E > arr) |
void | setDataStructure (SLelement< E > head) |
void | setDataStructure (DLelement< E > head) |
void | setDataStructure (CircSLelement< E > head) |
void | setDataStructure (CircDLelement< E > head) |
void | setDataStructure (TreeElement< E > tree_root) |
void | setDataStructure (BinTreeElement< E > tree_root) |
void | setDataStructure (BSTElement< K, E > tree_root) |
void | setDataStructure (AVLTreeElement< K, E > tree_root) |
void | setDataStructure (GraphAdjList< K, E > graph) |
void | setDataStructure (GraphAdjMatrix< K, E > graph) |
void | visualize () |
Element< E > | getRoot () |
void | setRoot (Element< E > root) |
Static Public Member Functions | |
static List< Tweet > | getAssociations (TwitterAccount name, int maxElements) |
static List< EarthquakeUSGS > | getAssociations (USGSaccount name, int maxElements) |
static List< EarthquakeUSGS > | getEarthquakeUSGSData (USGSaccount name, int maxElements) throws Exception |
static List< ActorMovieIMDB > | getActorMovieIMDBData (String name, int maxElements) throws Exception |
static List< GutenbergBook > | getGutenbergBookMetaData () throws Exception |
static List< Game > | getGameData () throws Exception |
static List< Shakespeare > | getShakespeareData () throws Exception |
static String | getAssignment () |
static void | setAssignment (int assignment) |
static String | getUserName () |
static void | setUserName (String userName) |
static String | getKey () |
static void | setKey (String key) |
Protected Member Functions | |
void | visualizeLinkedList () |
void | visualizeDoublyLinkedList () |
void | visualizeArrayObj () |
void | visualizeArray () |
void | visualizeTree () |
void | visualizeBinarySearchTree () |
void | visualizeGraphAdjacencyList () |
void | visualizeGraphAdjacencyMatrix () |
Protected Attributes | |
ADTVisualizer< K, E > | visualizer |
bridges.connect.Bridges< K, E >.Bridges | ( | ) |
Constructors
Exception |
bridges.connect.Bridges< K, E >.Bridges | ( | int | assignment, |
String | appl_id, | ||
String | username | ||
) |
assignment | this is an integer value; |
key | |
username |
Exception |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Element<E> bridges.connect.Bridges< K, E >.getRoot | ( | ) |
|
static |
|
static |
ADTVisualizer<K, E> bridges.connect.Bridges< K, E >.getVisualizer | ( | ) |
This method returns the current visualizer
|
static |
set the assignment id
assignment | number (int) |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | Element< E >[] | el_array, |
int | size | ||
) |
This method sets the array data type and infers the data structure from the handle that is passed in, which may be one of SinglyLinkedList, DoublyLinkedList,Tree, BinaryTree, BinarySearchTree, AVLTree, GraphAdjacencyList, GraphAdjacencyMatrix
e | The array of elements, Element<E>[] |
size | The size of the array |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | Array< E > | arr | ) |
This method sets the array data type(1D, 2D and 3D arrays supported)
Array | The array of elements, of type Element<E>[] |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | SLelement< E > | head | ) |
This method sets the first element of the singly linked list
head | - is a SLelement<E> |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | DLelement< E > | head | ) |
This method sets the first element of the doubly linked list
head | - is a DLelement<E> |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | CircSLelement< E > | head | ) |
This method sets the first element of the singly linked circular list
head | - start node of the circular singly linked list |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | CircDLelement< E > | head | ) |
This method sets the first element of the doubly linked circular list
head | - is a CircDLelement<E> |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | TreeElement< E > | tree_root | ) |
This method sets the root of a general tree (can have any number of children at each node
tree_root | The root of the tree |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | BinTreeElement< E > | tree_root | ) |
This method sets the first element of the binary tree data structure.
tree_root | The root of the binary tree |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | BSTElement< K, E > | tree_root | ) |
This method sets the first element of the binary search tree data structure.
tree_root | - The root of the binary search tree |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | AVLTreeElement< K, E > | tree_root | ) |
This method sets the first element of an AVL tree data structure.
tree_root | The root of the AVL tree |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | GraphAdjList< K, E > | graph | ) |
This method passes the handle to the input graph (represented using adjacency lists)
input | graph |
void bridges.connect.Bridges< K, E >.setDataStructure | ( | GraphAdjMatrix< K, E > | graph | ) |
This method passes the handle to the input graph (represented using adjacency matrix)
input | graph |
void bridges.connect.Bridges< K, E >.setDescription | ( | String | descr | ) |
descr | description to annotate the visualization; |
|
static |
void bridges.connect.Bridges< K, E >.setRoot | ( | Element< E > | root | ) |
root | the root to set |
void bridges.connect.Bridges< K, E >.setTitle | ( | String | title | ) |
title | title used in the visualization; |
|
static |
void bridges.connect.Bridges< K, E >.setVisualizer | ( | ADTVisualizer< K, E > | visualizer | ) |
This method sets the new DataFormatter visualizer
visualizer |
void bridges.connect.Bridges< K, E >.visualize | ( | ) |
This method calls the updateGraph() or updateSL() methods depending upon the type of ADT being created. These methods send the JSON to post() which ultimately executes the http request from the server
InvocationTargetException | |
IllegalAccessException | |
NoSuchMethodException |
|
protected |
Visualize an array
|
protected |
Visualize an array
|
protected |
Visualize a binary searchtree
|
protected |
Visualization a doubly linked list.
|
protected |
Update visualization metadata of Graph with Adjacency List. This may be called many times. This is usually an expensive operation and involves connecting to the network. Calling this method is optional provided you call complete()
|
protected |
|
protected |
visualize a singly linked list.
|
protected |
Visualize a binary tree
|
protected |