Bridges-Java-2.3.2  2.3.2
Bridges(JavaAPI)
Public Member Functions | Protected Attributes | List of all members
bridges.base.SLelement< E > Class Template Reference

This class can be used to instantiate Singly List Elements. More...

Inheritance diagram for bridges.base.SLelement< E >:
bridges.base.Element< E > bridges.base.DataStruct bridges.base.CircSLelement< E >

Public Member Functions

 SLelement ()
 
 SLelement (String label, E e)
 
 SLelement (E e, SLelement< E > next)
 
 SLelement (SLelement< E > next)
 
String getDataStructType ()
 
SLelement< E > getNext ()
 
void setNext (SLelement< E > next)
 
String toString ()
 
- Public Member Functions inherited from bridges.base.Element< E >
 Element ()
 
 Element (E val)
 
 Element (String label, E val)
 
 Element (Element< E > original)
 
String getIdentifier ()
 
ElementVisualizer getVisualizer ()
 
void setVisualizer (ElementVisualizer visualizer)
 
LinkVisualizer getLinkVisualizer (Element< E > el)
 
String getClassName ()
 
int compareTo (Element< E > e1)
 
boolean equals (Element< E > e1)
 
String getRepresentation ()
 
String getLabel ()
 
void setLabel (String label)
 
String arrangeLabel (String label, int wordNumber)
 
getValue ()
 
void setValue (E value)
 
String toString ()
 

Protected Attributes

SLelement< E > next =null
 
- Protected Attributes inherited from bridges.base.DataStruct
String QUOTE = "\""
 

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 ()
 

Detailed Description

This class can be used to instantiate Singly List Elements.

This class extends Element and takes a generic parameter <E> for representing application specific data.

Author
Mihai Mehedint, Kalpathi Subramanian
Parameters
<E>

Constructor & Destructor Documentation

This constructor creates an SLelement object and sets the next pointer to null

bridges.base.SLelement< E >.SLelement ( String  label,
e 
)

This constructor creates an SLelement object of value "e" and label "label" and sets the next pointer to null

Parameters
labelthe label of SLelement that shows up on the Bridges visualization
ethe generic object that this SLelement will hold
bridges.base.SLelement< E >.SLelement ( e,
SLelement< E >  next 
)

Creates a new element with value "e" and sets the next pointer to the SLelement referenced by the "next" argument

Parameters
ethe generic object that this SLelement will hold
nextthe SLelement that should be assigned to the next pointer

Creates a new element and sets the next pointer to the SLelement "next"

Parameters
nextthe SLelement that should be assigned to the next pointer

Member Function Documentation

String bridges.base.SLelement< E >.getDataStructType ( )

This method gets the data structure type

Returns
The date structure type as a string
SLelement<E> bridges.base.SLelement< E >.getNext ( )

Retrieves the next SLelement

Returns
SLelement<E> assigned to next
void bridges.base.SLelement< E >.setNext ( SLelement< E >  next)

Sets the pointer to the next SLelement

Parameters
nextSLelement<E> that should be assigned to the next pointer
String bridges.base.SLelement< E >.toString ( )

Member Data Documentation

SLelement<E> bridges.base.SLelement< E >.next =null
protected

The documentation for this class was generated from the following file: