com.supermap.analyst.networkanalyst3d
Class WeightFieldInfos3D
- java.lang.Object
-
- com.supermap.analyst.networkanalyst3d.WeightFieldInfos3D
-
public class WeightFieldInfos3D extends java.lang.Object
The WeightFieldInfos3D class.
The WeightFieldInfos3D class is the collection of the weight field information objects(
WeightFieldInfo3D
), which is used to manage the weight field information such as Add, Delete, getting the weight filed information of the specified name and index.
-
-
Constructor Summary
Constructors Constructor and Description WeightFieldInfos3D()
Creates a new WeightFieldInfos3D object.WeightFieldInfos3D(WeightFieldInfos3D weightFieldInfos)
Constructs a new object identical to the given WeightFieldInfos3D object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
add(WeightFieldInfo3D value)
Adds the specified WeightFieldInfo object in the WeightFieldInfos object.void
clear()
Empties the WeightFieldInfo3D objects in the WeightFieldInfos3D object.WeightFieldInfo3D
get(int value)
Returns the WeightFieldInfo3D object that has been indexed from the WeightFieldInfos3D object.WeightFieldInfo3D
get(java.lang.String value)
Returns the specified WeightFieldInfo3D.Name object in the WeightFieldInfos3D object.int
getCount()
Gets the count of the WeightFieldInfo in the given WeightFieldInfos.int
indexOf(java.lang.String name)
Returns the index of the specified WeightFieldInfo3D.Name object in the WeightFieldInfos3D object.boolean
remove(int index)
Removes the WeightFieldInfo3D object that has been indexed from the WeightFieldInfos3D object.boolean
remove(java.lang.String value)
Removes the WeightFieldInfo3D object that has been specified the name from the WeightFieldInfos3D object.
-
-
-
Constructor Detail
-
WeightFieldInfos3D
public WeightFieldInfos3D()
Creates a new WeightFieldInfos3D object.
-
WeightFieldInfos3D
public WeightFieldInfos3D(WeightFieldInfos3D weightFieldInfos)
Constructs a new object identical to the given WeightFieldInfos3D object.- Parameters:
weightFieldInfos
- The specified WeightFieldInfos3D object.
-
-
Method Detail
-
clear
public void clear()
Empties the WeightFieldInfo3D objects in the WeightFieldInfos3D object.
-
add
public int add(WeightFieldInfo3D value)
Adds the specified WeightFieldInfo object in the WeightFieldInfos object.- Parameters:
value
- The specified WeightFieldInfo object.- Returns:
- Returns the index of the added object in the WeightFieldInfos3D object.
-
remove
public boolean remove(java.lang.String value)
Removes the WeightFieldInfo3D object that has been specified the name from the WeightFieldInfos3D object.- Parameters:
value
- The specified name of the WeightFieldInfo3D to be removed.- Returns:
- A boolean value denotes whether the Delete is successful. True if successful; otherwise, false.
-
remove
public boolean remove(int index)
Removes the WeightFieldInfo3D object that has been indexed from the WeightFieldInfos3D object.- Parameters:
index
- The index of the specified WeightFieldInfo3D to be removed.- Returns:
- A boolean value denotes whether the Delete is successful. True if successful; otherwise, false.
-
indexOf
public int indexOf(java.lang.String name)
Returns the index of the specified WeightFieldInfo3D.Name object in the WeightFieldInfos3D object.- Parameters:
name
- The name of the specified WeightFieldInfo3D object.- Returns:
- Returns the index of the WeightFieldInfo3D object that has been specified the name in the WeightFieldInfos3D object.
-
getCount
public int getCount()
Gets the count of the WeightFieldInfo in the given WeightFieldInfos.- Returns:
- The count of the elements in the WeightFieldInfos3D object.
-
get
public WeightFieldInfo3D get(int value)
Returns the WeightFieldInfo3D object that has been indexed from the WeightFieldInfos3D object.- Parameters:
value
- The specified index, which begins with 0.- Returns:
- The WeightFieldInfo3D object that has been specified the index.
-
get
public WeightFieldInfo3D get(java.lang.String value)
Returns the specified WeightFieldInfo3D.Name object in the WeightFieldInfos3D object.- Parameters:
value
- The name of the specified WeightFieldInfo3D object.- Returns:
- The WeightFieldInfo3D object that has been specified the name.
-
-