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

This class is used to create doubly linked element objects. More...

Inheritance diagram for bridges.base.DLelement< E >:
bridges.base.Element< E > bridges.base.DataStruct bridges.base.CircDLelement< E >

Public Member Functions

 DLelement ()
 
 DLelement (String label, E e)
 
 DLelement (DLelement< E > next, DLelement< E > prev)
 
 DLelement (E e, DLelement< E > next, DLelement< E > prev)
 
String getDataStructType ()
 
DLelement< E > getNext ()
 
void setNext (DLelement< E > next)
 
DLelement< E > getPrev ()
 
void setPrev (DLelement< E > prev)
 
- 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

DLelement< E > next
 
DLelement< E > prev
 
- 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 is used to create doubly linked element objects.

Author
Mihai Mehedint

It is derived from Element, and and has two links, next and previous, pointing to the previous and succeeding nodes.

Constructor & Destructor Documentation

Constructs an empty DLelement with next and prev pointers set to null.

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

Constructs a DLelement labeled "label", holding an object "e", with next and prev pointers set to null.

Parameters
labelthe label for this DLelement that shows up on the Bridges visualization
ethe genereic object that this DLelement is holding
bridges.base.DLelement< E >.DLelement ( DLelement< E >  next,
DLelement< E >  prev 
)

Constructs an empty DLelement with the next pointer set to the DLelement "next" and the prev pointer set to DLelement "prev".

Parameters
nextthe DLelement that should be assigned to the next pointer
prevthe DLelement that should be assigned to the prev pointer
bridges.base.DLelement< E >.DLelement ( e,
DLelement< E >  next,
DLelement< E >  prev 
)

Constructs a DLelement holding an object "e", with the next pointer set to the DLelement "next" and the prev pointer set to DLelement "prev".

Parameters
ethe genereic object that this DLelement is holding
nextthe DLelement that should be assigned to the next pointer
prevthe DLelement that should be assigned to the prev pointer

Member Function Documentation

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

This method gets the data structure type

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

This method returns the pointer to the next DLelement

Returns
the DLelement assigned to the next pointer
DLelement<E> bridges.base.DLelement< E >.getPrev ( )

This method returns the pointer to the previous DLelement

Returns
the DLelement assigned to the prev pointer
void bridges.base.DLelement< E >.setNext ( DLelement< E >  next)

This method sets the pointer to the next DLelement

Parameters
nextthe DLelement that should be assigned to the next pointer
void bridges.base.DLelement< E >.setPrev ( DLelement< E >  prev)

This method sets the pointer to the previous DLelement

Parameters
prevthe DLelement that should be assigned to the prev pointer

Member Data Documentation

DLelement<E> bridges.base.DLelement< E >.next
protected
DLelement<E> bridges.base.DLelement< E >.prev
protected

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