|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.geometry.DetectionModel
public final class DetectionModel
This class provides a unique system identifier that refers to detectable object data.
| Field Summary | |
|---|---|
static int |
NO_ID
default id, means that no id was set. |
| Constructor Summary | |
|---|---|
DetectionModel(int id,
String name)
Deprecated. the id should not be used anymore, use spatial objects instead |
|
| Method Summary | |
|---|---|
boolean |
containsObject()
Checks if this detection model contains a spatial object. |
com.kuka.parameters.IParameter |
copy()
|
int |
getId()
Returns the id of this detection model. |
String |
getName()
Returns the name of this detection model. |
com.kuka.geometry.SpatialObject |
getObject()
Returns the spatial object corresponding to this detection model if it exists. |
static DetectionModel |
of(com.kuka.geometry.SpatialObject object)
Creates a new detection model with the given spatial object. |
static DetectionModel |
of(String templateName)
Creates a new detection model referencing the object template with the given name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ID
| Constructor Detail |
|---|
@Deprecated
public DetectionModel(int id,
String name)
id - the id of the objectname - the name of the object| Method Detail |
|---|
public static DetectionModel of(String templateName)
templateName - the name of the object template
public static DetectionModel of(com.kuka.geometry.SpatialObject object)
object - the spatial object
public int getId()
public String getName()
public boolean containsObject()
true if this detection model contains a spatial object, false otherwisepublic com.kuka.geometry.SpatialObject getObject()
null is returned. Use containsObject() to check if the spatial object exists.
public com.kuka.parameters.IParameter copy()
copy in interface com.kuka.parameters.IParameterpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||