giden.GRDS
Class EdgeArray
java.lang.Object
|
+--giden.GRDS.IndexArray
|
+--giden.GRDS.EdgeArray
- All Implemented Interfaces:
- java.io.Serializable
- public class EdgeArray
- 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.
EdgeArray 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:
Edge
,
IndexArray
,
Network
, Serialized Form
Constructor Summary |
EdgeArray(int size,
java.lang.String name)
Creates an edge array with the given initial size and name,
and initializes the array components to null. |
Method Summary |
void |
Put(Edge indexobject,
double value)
Puts the double using the given Index object |
void |
Put(Edge indexobject,
int value)
Puts the integer using the given Index object |
void |
Put(Edge 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 |
EdgeArray
public EdgeArray(int size,
java.lang.String name)
- Creates an edge 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).
EdgeArrays 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.CreateEdgeArray(java.lang.String)
Put
public void Put(Edge indexobject,
java.lang.Object obj)
- Puts the Object using the given Index object
- Parameters:
indexobject
- The Index object for this arrayobj
- The Object to store in the array
Put
public void Put(Edge indexobject,
int value)
- Puts the integer using the given Index object
- Parameters:
indexobject
- The object containing an array indexvalue
- The integer value to store in this array
Put
public void Put(Edge indexobject,
double value)
- Puts the double using the given Index object
- Parameters:
indexobject
- The object containing an array indexvalue
- The double value to store in this array