com.supermap.realspace.networkanalyst
类 WeightFieldInfos3D

java.lang.Object
  继承者 com.supermap.realspace.networkanalyst.WeightFieldInfos3D

public class WeightFieldInfos3D
extends java.lang.Object

权值字段信息集合类。该类是权值字段信息对象(WeightFieldInfo3D)的集合,用于对权值字段信息对象进行管理,如添加、删除、获取指定名称或索引的权值字段信息对象等。


构造方法摘要
WeightFieldInfos3D()
          构造一个新的 WeightFieldInfos3D 对象。
WeightFieldInfos3D(WeightFieldInfos3D weightFieldInfos)
          根据给定的 WeightFieldInfos3D 对象构造一个与其完全相同的新对象。
 
方法摘要
 int add(WeightFieldInfo3D weightFieldInfo)
          向权值字段信息集合对象中添加指定的权值字段信息对象。
 void clear()
          清空权值字段信息集合对象中的权值字段信息对象。
 WeightFieldInfo3D get(int index)
          返回权值字段信息集合对象中指定索引处的权值字段信息对象。
 WeightFieldInfo3D get(java.lang.String name)
          返回权值字段信息集合对象中指定名称的权值字段信息对象。
 int getCount()
          返回给定的权值字段信息集合中元素的总数。
 int indexOf(java.lang.String name)
          返回权值字段信息集合对象中指定名称的权值字段信息对象的索引。
 boolean remove(int index)
          在权值字段信息集合对象中删除指定索引处的权值字段信息对象。
 boolean remove(java.lang.String name)
          在权值字段信息集合对象中删除指定名称的权值字段信息对象。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WeightFieldInfos3D

public WeightFieldInfos3D()
构造一个新的 WeightFieldInfos3D 对象。


WeightFieldInfos3D

public WeightFieldInfos3D(WeightFieldInfos3D weightFieldInfos)
根据给定的 WeightFieldInfos3D 对象构造一个与其完全相同的新对象。

参数:
weightFieldInfos - 指定的 WeightFieldInfos3D 对象。
方法详细信息

getCount

public int getCount()
返回给定的权值字段信息集合中元素的总数。

返回:
权值字段信息集合中元素的总数。

get

public WeightFieldInfo3D get(int index)
返回权值字段信息集合对象中指定索引处的权值字段信息对象。

参数:
index - 指定的索引。索引值从0开始。
返回:
指定索引处的权值字段信息对象。

get

public WeightFieldInfo3D get(java.lang.String name)
返回权值字段信息集合对象中指定名称的权值字段信息对象。

参数:
name - 指定的权值字段信息的名称。
返回:
指定名称的权值字段信息对象。

add

public int add(WeightFieldInfo3D weightFieldInfo)
向权值字段信息集合对象中添加指定的权值字段信息对象。

参数:
weightFieldInfo - 指定的权值字段信息对象。
返回:
如果添加成功,返回被添加对象在权值字段信息集合对象中的索引。

indexOf

public int indexOf(java.lang.String name)
返回权值字段信息集合对象中指定名称的权值字段信息对象的索引。

参数:
name - 指定的权值字段信息对象的名称。
返回:
指定名称的权值字段信息对象在权值字段信息集合对象中的索引。

remove

public boolean remove(java.lang.String name)
在权值字段信息集合对象中删除指定名称的权值字段信息对象。

参数:
name - 指定的要删除的权值字段信息对象的名称。
返回:
一个布尔值,代表是否删除成功。如果成功,返回 true,否则返回 false。

remove

public boolean remove(int index)
在权值字段信息集合对象中删除指定索引处的权值字段信息对象。

参数:
index - 指定的要删除的权值字段信息对象的索引。
返回:
一个布尔值,代表是否删除成功。如果成功,返回 true,否则返回 false。

clear

public void clear()
清空权值字段信息集合对象中的权值字段信息对象。