|
Bridges-Java-2.3.2
2.3.2
Bridges(JavaAPI)
|
This class can be used to instantiate Singly Linked Circular List Elements. More...
Additional Inherited Members | |
Protected Member Functions inherited from bridges.base.Element< E > | |
| String | getDataStructType () |
| void | validateVal (E value) |
Protected Member Functions inherited from bridges.base.DataStruct | |
| abstract String | getDataStructType () |
Protected Attributes inherited from bridges.base.SLelement< E > | |
| SLelement< E > | next =null |
Protected Attributes inherited from bridges.base.DataStruct | |
| String | QUOTE = "\"" |
This class can be used to instantiate Singly Linked Circular List Elements.
Structurally they are the same as singly linked elements except that each node constructed with the next point pointing to itself; User's implementation of the circularly linked list needs to ensure that the last node points to itself, as the visualization generation is dependent on this.
Elements have labels (string) that are displayed on the visualization. Elements take an generic object as a user defined parameter, E, which can be any native type or object.
Elements contains a visualizer object for setting visual attributes (color, shape, opacity, size), necessary for displaying them in a web browser
| <E> | the generic parameter that is defined by the application |
| bridges.base.CircSLelement< E >.CircSLelement | ( | ) |
This constructor creates an CircSLelement object and sets its next pointer to itself
| bridges.base.CircSLelement< E >.CircSLelement | ( | String | label, |
| E | e | ||
| ) |
This constructor creates an CircSLelement object of value "e" and label "label" and sets the next pointer to null
| label | the label of CircSLelement that shows up on the Bridges visualization |
| e | the generic object that this CircSLelement will hold |
| bridges.base.CircSLelement< E >.CircSLelement | ( | E | e, |
| CircSLelement< E > | next | ||
| ) |
Creates a new element with value "e" and sets the next pointer to the CircSLelement referenced by the "next" argument
| e | the generic object that this CircSLelement will hold |
| next | the CircSLelement that should be assigned to the next pointer |
| bridges.base.CircSLelement< E >.CircSLelement | ( | CircSLelement< E > | next | ) |
Creates a new element and sets the next pointer to the CircSLelement "next"
| next | the CircSLelement that should be assigned to the next pointer |
| String bridges.base.CircSLelement< E >.getDataStructType | ( | ) |
This method gets the data structure type
| CircSLelement<E> bridges.base.CircSLelement< E >.getNext | ( | ) |
Retrieves the next CircSLelement
| void bridges.base.CircSLelement< E >.setNext | ( | CircSLelement< E > | next | ) |
Sets the pointer to the next CircSLelement
| next | CircSLelement<E> that should be assigned to the next pointer |
| String bridges.base.CircSLelement< E >.toString | ( | ) |
(non-Javadoc)
1.8.10