File

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

Index

Properties
Methods

Constructor

constructor(name?: string, href?: string)
Parameters :
Name Type Optional
name string Yes
href string Yes

Properties

abstractProcess
Type : AbstractProcess
href
Type : string
Decorators :
@DisplayName('Href')
name
Type : string
Decorators :
@DisplayName('Name')

Methods

toString
toString()
Returns : string
import { DisplayName } from '../../common/decorators/DisplayName';
import { AbstractProcess } from '../sml';

export class Component {

    constructor(name?: string, href?: string) {
        this.name = name;
        this.href = href;
     }

    @DisplayName('Name')
    name: string;

    @DisplayName('Href')
    href: string;

    abstractProcess: AbstractProcess;

    toString() {
        return this.name || 'Component';
    }
}

result-matching ""

    No results matching ""