giden.GRDS
Class Network

java.lang.Object
  |
  +--giden.GRDS.Graph
        |
        +--giden.GRDS.Network
All Implemented Interfaces:
java.io.Serializable

public class Network
extends Graph

Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.
We make no representations or warranties about the suitability of the software, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. We shall not be liable for any damages suffered by user as a result of using, modifying or distributing this software or its derivatives.

Network inherits the Graph class and provides methods for creating and retrieving NodeArray and EdgeArray objects. The current version can hold at most 10 NodeArray and 10 EdgeArray objects. Arrays are created with a String name, and those names are displayed by the GUI and saved with the network. The user can also create NodeArray and EdgeArray objects independent of a Network object. Network creates NodeId, EdgeId, and EdgeLength arrays when it is created. Network maintains the NodeId and EdgeId values, the UserInterface is responsible for maintaining the EdgeLength values.

Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.

Following are all the documented classes for the developer release of GIDEN.

Version:
4.0a 2004 08 27
Author:
D. S. Dilworth
See Also:
BoundedQueue, DoubleLinkList, Edge, EdgeArray, EdgeListIter, Graph, InListIter, Index, IndexArray, LinkList, ListEntry, ListIter, Network, Node, NodeArray, NodeListIter, OutListIter, PQList, Queue, SingleLinkList, SolverMenu, SolverMenuBase, UserIO, Serialized Form

Field Summary
 LinkList UiNetComments
          Internal data member
 LinkList UiNetEdgesComments
          Internal data member
 LinkList UiNetNodesComments
          Internal data member
 
Fields inherited from class giden.GRDS.Graph
UiNet
 
Constructor Summary
Network()
          Creates an empty Network (a Network with no Nodes and no Edges)
 
Method Summary
 giden.GRDS.NamedObject AddNamedObject(java.lang.String name, java.lang.Object value)
          Adds the name and its value to the NamedObject list
 EdgeArray CreateEdgeArray(java.lang.String name)
          Creates a new EdgeArray with the given name.
 NodeArray CreateNodeArray(java.lang.String name)
          Creates a new NodeArray with the given name.
 void DeleteContents()
          Deletes all Nodes and Edges and NodeArrays and EdgeArrays of this Network.
 void DeleteEdgeArray(java.lang.String name)
          Internal method
 void DeleteNodeArray(java.lang.String name)
          Internal method
 giden.GRDS.NamedObject FindNamedObject(java.lang.String name)
          returns the first NamedObject item with the given name
 Edge GetEdge(java.lang.String index_string)
          Internal method
 EdgeArray GetEdgeArray(java.lang.String name)
          Gets the edge array with the given name from this Network
 LinkList GetEdgeArrayStrings()
          Internal method
 LinkList GetEdgeArrayStrings(int type)
          Internal method
 LinkList GetEdgeIndexStrings()
          Internal method
 java.lang.String GetFirstEdgeArrayName()
          Gets the name of the first EdgeArray
 java.lang.String GetFirstNodeArrayName()
          Gets the name of the first NodeArray
 ListIter GetNamedObjectIter()
          Gets and interator for the NamedObject list
 java.lang.String GetNextEdgeArrayName()
          Gets the name of the next EdgeArray
 java.lang.String GetNextNodeArrayName()
          Gets the name of the next NodeArray
 Node GetNode(java.lang.String index_string)
          Internal method
 NodeArray GetNodeArray(java.lang.String name)
          Gets the node array with the given name from this Network
 LinkList GetNodeArrayStrings()
          Internal method
 LinkList GetNodeArrayStrings(int type)
          Internal method
 LinkList GetNodeIndexStrings()
          Internal method
 void PutUiNetwork(giden.CORE.UiNetwork uinet)
          Internal method
 
Methods inherited from class giden.GRDS.Graph
CreateEdge, CreateNode, DeleteAllEdges, DeleteAllNodes, DeleteEdge, DeleteGraph, DeleteNode, GetCreatedEdgesCount, GetCreatedNodesCount, GetDirected, GetEdgeCount, GetEdgeIndex, GetEdgeListIter, GetNodeCount, GetNodeIndex, GetNodeListIter, GetSolverServices, IncrementEdgeIndex, IncrementNodeIndex, PutDirected, PutSolverServices, ReverseEdge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UiNetComments

public LinkList UiNetComments
Internal data member

UiNetNodesComments

public LinkList UiNetNodesComments
Internal data member

UiNetEdgesComments

public LinkList UiNetEdgesComments
Internal data member
Constructor Detail

Network

public Network()
Creates an empty Network (a Network with no Nodes and no Edges)
Method Detail

AddNamedObject

public giden.GRDS.NamedObject AddNamedObject(java.lang.String name,
                                             java.lang.Object value)
Adds the name and its value to the NamedObject list

GetNamedObjectIter

public ListIter GetNamedObjectIter()
Gets and interator for the NamedObject list

FindNamedObject

public giden.GRDS.NamedObject FindNamedObject(java.lang.String name)
returns the first NamedObject item with the given name

DeleteContents

public void DeleteContents()
Deletes all Nodes and Edges and NodeArrays and EdgeArrays of this Network.

PutUiNetwork

public void PutUiNetwork(giden.CORE.UiNetwork uinet)
Internal method

GetFirstNodeArrayName

public java.lang.String GetFirstNodeArrayName()
Gets the name of the first NodeArray
Returns:
The first NodeArray in the network.

GetNextNodeArrayName

public java.lang.String GetNextNodeArrayName()
Gets the name of the next NodeArray
Returns:
The next NodeArray name in the network

GetFirstEdgeArrayName

public java.lang.String GetFirstEdgeArrayName()
Gets the name of the first EdgeArray
Returns:
The first EdgeArray name in the network.

GetNextEdgeArrayName

public java.lang.String GetNextEdgeArrayName()
Gets the name of the next EdgeArray
Returns:
The next EdgeArray name in the network

GetNodeArray

public NodeArray GetNodeArray(java.lang.String name)
Gets the node array with the given name from this Network
Returns:
The node array or null if it doesn't exist

DeleteNodeArray

public void DeleteNodeArray(java.lang.String name)
Internal method

CreateNodeArray

public NodeArray CreateNodeArray(java.lang.String name)
Creates a new NodeArray with the given name. NodeArrays created in this way are also stored by the Network object and can be later retrieved through the name.
Returns:
A NodeArray
See Also:
NodeArray

GetEdgeArray

public EdgeArray GetEdgeArray(java.lang.String name)
Gets the edge array with the given name from this Network
Returns:
The edge array or null if it doesn't exist

DeleteEdgeArray

public void DeleteEdgeArray(java.lang.String name)
Internal method

CreateEdgeArray

public EdgeArray CreateEdgeArray(java.lang.String name)
Creates a new EdgeArray with the given name. EdgeArrays created in this way are also stored by the Network object and can be later retrieved through the name.
Returns:
A new EdgeArray.
See Also:
EdgeArray

GetNodeArrayStrings

public LinkList GetNodeArrayStrings()
Internal method

GetNodeArrayStrings

public LinkList GetNodeArrayStrings(int type)
Internal method

GetEdgeArrayStrings

public LinkList GetEdgeArrayStrings()
Internal method

GetEdgeArrayStrings

public LinkList GetEdgeArrayStrings(int type)
Internal method

GetNodeIndexStrings

public LinkList GetNodeIndexStrings()
Internal method

GetNode

public Node GetNode(java.lang.String index_string)
Internal method

GetEdgeIndexStrings

public LinkList GetEdgeIndexStrings()
Internal method

GetEdge

public Edge GetEdge(java.lang.String index_string)
Internal method