|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.NetWeight
public class NetWeight
A container for defining a weight on the network.
Certain network features can have weights associated with them to further refine the network analysis performed by trace tasks. There are two main kinds of weights: ratio weights and categorical weights.
Ratio weights are associated with feature attributes that reflect the cost to traverse, either partially or in its entirety, a network feature. The values of a ratio weight are proportioned across the length of the network feature. Examples of ratio weights in a network include the length of a pipe in a water network and the time to travel a segment of road in a street network. Ratio weights are used by certain trace tasks that return a cost value. For example, the FindPath trace solver finds the path of minimal cost, based on the weight specified.
Categorical (or nominal) weights are associated with feature attributes that classify the feature. They are used to restrict tracing on specific features based on a certain attribute value. Examples of categorical weights in a network include the "Phase" attribute in circuits, the pipe diameter in a water network, and road classification in a street network.
Bitgate weights are a special kind of categorical weight. They allow multiple binary attributes to be specified in a single bitgate value. The bitgate size is the number of binary attributes represented by the bitgate value. The maximum bitgate size is 31.
For more information on weights, please see the ArcGIS Network Weight Model technical document.
The NetWeight object is used for establishing and viewing existing weights on a logical network. The NetWeight object is used to define the category of weight to use, while NetWeightAssociation objects are used to specify the fields with each feature class that will participate in the particular weight.
| Constructor Summary | |
|---|---|
NetWeight()
Constructs a NetWeight using ArcGIS Engine. |
|
NetWeight(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NetWeight theNetWeight = (NetWeight) obj; |
|
| Method Summary | |
|---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
int |
getBitGateSize()
Bit gate size of the network weight described by this NetWeight object. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getWeightID()
Internal ID of the network weight described by this NetWeight object. |
String |
getWeightName()
Name of the network weight described by this NetWeight object. |
int |
getWeightType()
Type of network weight described by this NetWeight object. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setBitGateSize(int rhs1)
Bit gate size of this NetWeight object. |
void |
setWeightName(String rhs1)
Name of this NetWeight object. |
void |
setWeightType(int rhs1)
Type of network weight of this NetWeight object. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public NetWeight()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NetWeight(Object obj)
throws IOException
NetWeight theNetWeight = (NetWeight) obj;
obj to NetWeight.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getWeightName()
throws IOException,
AutomationException
The WeightName property returns the name of the network that was supplied at it's time of creation.
getWeightName in interface INetWeightIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWeightType()
throws IOException,
AutomationException
WeightType returns the type of network weight, corresponding to a value from the esriWeightType enumeration.
getWeightType in interface INetWeightIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBitGateSize()
throws IOException,
AutomationException
BitGateSize can only be accessed if the WeightType property is esriWTBitGate and contains the number bits to used as the bit gate.
getBitGateSize in interface INetWeightIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWeightID()
throws IOException,
AutomationException
The WeightID property returns the unique ID of the network weight within the network.
getWeightID in interface INetWeightIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWeightName(String rhs1)
throws IOException,
AutomationException
setWeightName in interface INetWeightEditrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWeightType(int rhs1)
throws IOException,
AutomationException
setWeightType in interface INetWeightEditrhs1 - A com.esri.arcgis.geodatabase.esriWeightType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBitGateSize(int rhs1)
throws IOException,
AutomationException
BitGateSize can only be accessed if the WeightType property is esriWTBitGate.
setBitGateSize in interface INetWeightEditrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws IOException,
AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IClone esri_clone()
throws IOException,
AutomationException
esri_clone in interface ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IClone other)
throws IOException,
AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIdentical(IClone other)
throws IOException,
AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||