|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesfile.SMRestriction
public class SMRestriction
The object for defining route restrictions.
Constructor Summary | |
---|---|
SMRestriction()
Constructs a SMRestriction using ArcGIS Engine. |
|
SMRestriction(Object obj)
Construct a SMRestriction using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
ISMNetAttribute |
getAttribute()
The network attribute used as a restriction. |
static String |
getClsid()
getClsid. |
Object |
getParam()
The restriction parameter value. |
int |
getType()
Restriction type. |
int |
hashCode()
the hashcode for this object |
void |
setAttributeByRef(ISMNetAttribute pAttr)
The network attribute used as a restriction. |
void |
setParam(Object pvParam)
The restriction parameter value. |
void |
setType(int pVal)
Restriction type. |
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 SMRestriction() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SMRestriction(Object obj) throws IOException
obj
to SMRestriction
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
SMRestriction theSMRestriction = (SMRestriction) obj;
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public ISMNetAttribute getAttribute() throws IOException, AutomationException
getAttribute
in interface ISMRestriction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAttributeByRef(ISMNetAttribute pAttr) throws IOException, AutomationException
setAttributeByRef
in interface ISMRestriction
pAttr
- A reference to a com.esri.arcgis.datasourcesfile.ISMNetAttribute (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
The restriction type can be Strict or Relaxed. Strict restrictions can never be violated by the solver, while Relaxed restrictions can be violated if there is no other way to calculate a route.
getType
in interface ISMRestriction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setType(int pVal) throws IOException, AutomationException
setType
in interface ISMRestriction
pVal
- A com.esri.arcgis.datasourcesfile.esriSMRestrictionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getParam() throws IOException, AutomationException
getParam
in interface ISMRestriction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParam(Object pvParam) throws IOException, AutomationException
setParam
in interface ISMRestriction
pvParam
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |