|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.SPR
com.kuka.roboticsAPI.controllerModel.sunrise.xml.XmlSPR
public class XmlSPR
A XmlSPR is created out of a xml representation in the file system. It behaves like a normal SPR after it was loaded. It also can be modified by the program.
| Field Summary |
|---|
| Fields inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.api.SPR |
|---|
INVALID_SPR_ID |
| Constructor Summary | |
|---|---|
XmlSPR(String name)
Creates a new instance. |
|
| Method Summary | |
|---|---|
SPRComponent |
getComponent(String moduleIdentifier)
Finds the component which has the the given name. |
static XmlSPR |
load(RoboticsAPIContext context,
String resourceName)
Loads a xml spr from the given context from the given resource name. |
static XmlSPR |
load(RoboticsAPIContext context,
String name,
String resourceName)
Loads a xml spr from the given context from the given resource name and with the given type name. |
static XmlSPR |
load(String name,
String fileName)
Loads a xml spr with the given type name from the given file location. |
static XmlSPR |
load(String sprName,
URL url)
Loads a xml spr with the given type name from the given location. |
static XmlSPR |
load(URL url)
Loads a xml spr from the given url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlSPR(String name)
name - The type name of the spr.| Method Detail |
|---|
public final SPRComponent getComponent(String moduleIdentifier)
This method also checks the instance name and the alias of all components.
moduleIdentifier - The name to search for.
public static XmlSPR load(RoboticsAPIContext context,
String resourceName)
context - The context.resourceName - The resource name.
public static XmlSPR load(RoboticsAPIContext context,
String name,
String resourceName)
context - The context.name - The type name of the spr.resourceName - The resource name.
public static XmlSPR load(URL url)
url - The url where the xml spr description can be found.
public static XmlSPR load(String name,
String fileName)
throws MalformedURLException
name - The type name of the spr.fileName - The file name of the xml spr description.
MalformedURLException - Thrown when the given fileName is not a valid URL.
public static XmlSPR load(String sprName,
URL url)
sprName - The type name of the spr.url - The location of the content which describes the spr which
should be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||