ILinkTarget Interface |
Namespace: KASAPIv2
The ILinkTarget type exposes the following members.
| Name | Description | |
|---|---|---|
| linkSource | Source that maintains the link. |
The target is a sink for a link initiated by the another part's ILinkSource.
The link target have a state that defines what it can do (linkState). Not all actions are allowed in any state. The following state diagram tells what the target can do and when:
| Transition | Action |
|---|---|
| Available => AcceptingLinks | This target is able to connect to a source that has just initiated a link. |
| Available => RejectingLinks | This target cannot connect to a source that has just initiated a link. |
| AcceptingLinks => Available | The source module has ended its linking mode without linking to this target. |
| AcceptingLinks => Linked | A source from the world has linked to this target. |
| AcceptingLinks => Locked | A source from the world has linked to another target on the part that owns this target. |
| Linked => Available | The link to this target has been broken by the source. |
| Locked => Available | A source from the world has broke a link to another target on the part that owns this target. |
| RejectingLinks => Available | A source from the world has ended the linking mode, and the target's part hasn't linked. |
| RejectingLinks => Locked | A source from the world has linked to the owner of this target but through another target. |