File

libs/sensorml/src/lib/model/sml/Connection.ts

Description

The explicit definition of data links between outputs, inputs, and parameters of the components within an aggregate process.

Index

Properties
Methods

Properties

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.

Methods

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';
        }
    }
}

result-matching ""

    No results matching ""