Schnittstelle PeripheralService
- Alle Superschnittstellen:
TCSObjectService
- Alle bekannten Unterschnittstellen:
InternalPeripheralService
Provides methods concerning peripheral devices represented by
Location
s.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
attachCommAdapter
(TCSResourceReference<Location> ref, PeripheralCommAdapterDescription description) Attaches the described comm adapter to the referenced location.void
Disables the comm adapter attached to the referenced location.void
Enables the comm adapter attached to the referenced location.Returns attachment information for the referenced location.Returns the process model for the referenced location.void
Sends aPeripheralAdapterCommand
to the comm adapter attached to the referenced location.Von Schnittstelle geerbte Methoden org.opentcs.components.kernel.services.TCSObjectService
appendObjectHistoryEntry, fetchObject, fetchObject, fetchObjects, fetchObjects, updateObjectProperty
-
Methodendetails
-
attachCommAdapter
void attachCommAdapter(TCSResourceReference<Location> ref, PeripheralCommAdapterDescription description) throws ObjectUnknownException, KernelRuntimeException Attaches the described comm adapter to the referenced location.- Parameter:
ref
- A reference to the location.description
- The description for the comm adapter to be attached.- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.
-
disableCommAdapter
void disableCommAdapter(TCSResourceReference<Location> ref) throws ObjectUnknownException, KernelRuntimeException Disables the comm adapter attached to the referenced location.- Parameter:
ref
- A reference to the location the comm adapter is attached to.- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.
-
enableCommAdapter
void enableCommAdapter(TCSResourceReference<Location> ref) throws ObjectUnknownException, KernelRuntimeException Enables the comm adapter attached to the referenced location.- Parameter:
ref
- A reference to the location the comm adapter is attached to.- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.
-
fetchAttachmentInformation
PeripheralAttachmentInformation fetchAttachmentInformation(TCSResourceReference<Location> ref) throws ObjectUnknownException, KernelRuntimeException Returns attachment information for the referenced location.- Parameter:
ref
- A reference to the location.- Gibt zurück:
- The attachment information.
- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.
-
fetchProcessModel
PeripheralProcessModel fetchProcessModel(TCSResourceReference<Location> ref) throws ObjectUnknownException, KernelRuntimeException Returns the process model for the referenced location.- Parameter:
ref
- A reference to the location.- Gibt zurück:
- The process model.
- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.
-
sendCommAdapterCommand
void sendCommAdapterCommand(TCSResourceReference<Location> ref, PeripheralAdapterCommand command) throws ObjectUnknownException, KernelRuntimeException Sends aPeripheralAdapterCommand
to the comm adapter attached to the referenced location.If called within the kernel application, this method is supposed to be called only on the kernel executor thread.
- Parameter:
ref
- A reference to the location.command
- The adapter command to send.- Löst aus:
ObjectUnknownException
- If the referenced location does not exist.KernelRuntimeException
- In case there is an exception executing this method.- Siehe auch:
-