|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcharly.client.ChRobClient
This class gives access to a ROB3 connected to the server. For
an example of how to use it refer to ChSimpleRob
| Field Summary | |
protected ChConnect |
conn
|
protected ChRobDevice |
robDvc
points to the ChRobDevice on the server. |
protected ChTask |
task
This is the task which reserves the device ROB on the server. |
| Constructor Summary | |
ChRobClient(ChConnect conn)
Konstruktor |
|
| Method Summary | |
int[] |
getAxes()
|
int |
getAxisPos(int axisNr)
|
ChConnect |
getConnection()
Implementations should return the connection to the server where the resource can be found. |
java.lang.String |
getResourceName()
returns the name to be allocated on a server for a specified GPIB-device. |
ChTask |
getTask()
|
void |
setAxes(int[] pos)
Setzt Position aller sechs Achsen |
void |
setAxisPos(int axisNr,
int pos)
Setzt Position der Achse axisNr |
void |
setTask(ChTask task)
This method must be called to be able to use the setAxis... |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ChRobDevice robDvc
ChRobDevice on the server.
protected ChTask task
protected ChConnect conn
| Constructor Detail |
public ChRobClient(ChConnect conn)
throws java.rmi.RemoteException,
java.net.MalformedURLException,
java.rmi.NotBoundException
conn - - the server address.| Method Detail |
public ChConnect getConnection()
ChResource
getConnection in interface ChResourcepublic void setTask(ChTask task)
setTask in interface ChResourcepublic ChTask getTask()
public java.lang.String getResourceName()
Example:
ChTask task=new ChTask("ATask");
task.addRsrc(conn,robClient.getRsrcName());
getResourceName in interface ChResourceChRobDevice.NAME
public void setAxisPos(int axisNr,
int pos)
throws ChRobDeviceException,
java.rmi.RemoteException,
ChTaskNotStartedException,
ChAccessDeniedException
axisNr - Achsennummer (0-5)pos - Neue Position (0-255)
ChRobDeviceException
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public int getAxisPos(int axisNr)
throws java.rmi.RemoteException,
ChRobDeviceException
axisNr - - Achsennummer (0-5)
java.rmi.RemoteException
ChRobDeviceException
public void setAxes(int[] pos)
throws java.rmi.RemoteException,
ChTaskNotStartedException,
ChAccessDeniedException,
ChRobDeviceException
pos - Neue Positionen: Array mit sechs Elementen mit Werten
zwischen 0 und 255
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChRobDeviceException
public int[] getAxes()
throws java.rmi.RemoteException,
ChTaskNotStartedException,
ChAccessDeniedException,
ChRobDeviceException
null bei
Misserfolg bspw. bei Timeout????!!!!
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChRobDeviceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||