libs/sensorml/src/lib/model/sml/Connection.ts
The explicit definition of data links between outputs, inputs, and parameters of the components within an aggregate process.
Properties |
Methods |
destination |
Type : string
|
Decorators :
@DisplayName('Destination')
|
The input or parameter into which the data flows. |
source |
Type : string
|
Decorators :
@DisplayName('Source')
|
The output from which the link originates. |
toString |
toString()
|
Returns :
string
|
import { DisplayName } from '../../common/decorators/DisplayName';
/**
* The explicit definition of data links between outputs, inputs, and parameters
* of the components within an aggregate process.
*/
export class Connection {
/**
* The output from which the link originates.
*/
@DisplayName('Source')
source: string;
/**
* The input or parameter into which the data flows.
*/
@DisplayName('Destination')
destination: string;
toString() {
if (this.source && this.destination) {
return this.source + ' → ' + this.destination;
} else {
return 'empty connection';
}
}
}