giden.GRDS
Class NodeArray

java.lang.Object
  |
  +--giden.GRDS.IndexArray
        |
        +--giden.GRDS.NodeArray
All Implemented Interfaces:
java.io.Serializable

public class NodeArray
extends IndexArray

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.

NodeArray is derived from IndexArray and provides identical methods. The primary purpose of using this class is to clarify the intended data type for the array.

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

Version:
4.0a 2004 08 27
Author:
D. S. Dilworth
See Also:
IndexArray, Network, Node, Serialized Form

Fields inherited from class giden.GRDS.IndexArray
ANY_TYPE, DOUBLE_TYPE, EDGE_TYPE, FillObject, FillType, FLOAT_TYPE, INTEGER_TYPE, NODE_TYPE, STRING_TYPE
 
Constructor Summary
NodeArray(int size, java.lang.String name)
          Creates a node array with the given initial size and name and initializes the array components to null.
 
Method Summary
 void Put(Node indexobject, double value)
          Puts the double using the given Index object
 void Put(Node indexobject, int value)
          Puts the integer using the given Index object
 void Put(Node indexobject, java.lang.Object obj)
          Puts the Object using the given Index object
 
Methods inherited from class giden.GRDS.IndexArray
Fill, Fill, Fill, GetAlias, GetDouble, GetEdge, GetInt, GetName, GetNode, GetObj, GetSize, GetString, GetUiEdge, GetUiIndexArray, GetUiNode, PutAlias, PutObj, PutObj, PutObj, PutUiIndexArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeArray

public NodeArray(int size,
                 java.lang.String name)
Creates a node array with the given initial size and name and initializes the array components to null. If the given size is less than 100, then a size of 100 is used. Each array access is checked to determine whether it is beyond the bounds of the array. To accommodate array accesses beyond its bounds, the array is automatically resized, and the new components are initialized to the most recent Object used to Fill this array (default is null). NodeArrays created in this way are not stored in the Network object and can not be later retrieved through the name.
Parameters:
size - Initial size of the array.
name - Name of the array
See Also:
Network.CreateNodeArray(java.lang.String)
Method Detail

Put

public void Put(Node indexobject,
                java.lang.Object obj)
Puts the Object using the given Index object
Parameters:
indexobject - The Index object for this array
obj - The Object to store in the array

Put

public void Put(Node indexobject,
                int value)
Puts the integer using the given Index object
Parameters:
indexobject - The object containing an array index
value - The integer value to store in this array

Put

public void Put(Node indexobject,
                double value)
Puts the double using the given Index object
Parameters:
indexobject - The object containing an array index
value - The double value to store in this array