Home Reference Source
public class | source

Interaction

Extends:

Identified → Interaction

Class to represent an SBOL2 Interaction.

Constructor Summary

Public Constructor
public

constructor(sbolDocument: *, uri: *)

Member Summary

Public Members
public get

Retrieve the list of Participations for this Interaction.

public get

types: URI[]: *

Retrieve a list of types for this Interaction.

Method Summary

Public Methods
public

addParticipation(participation: string | URI | Paticipation)

Add a Participation to this Interaction.

public

addType(type: string | URI)

Add a type to this Interaction.

public

link()

Attempt to resolve participations by URI.

Public Constructors

public constructor(sbolDocument: *, uri: *) source

Parameters:

NameTypeAttributeDescription
sbolDocument *
uri *

Public Members

public get participations: Participation[]: * source

Retrieve the list of Participations for this Interaction. There may be URIs present in this list if the participation(s) have not yet been resolved.

Returns:

Participation[]

public get types: URI[]: * source

Retrieve a list of types for this Interaction.

Returns:

URI[]

[types]

Public Methods

public addParticipation(participation: string | URI | Paticipation) source

Add a Participation to this Interaction.

Parameters:

NameTypeAttributeDescription
participation string | URI | Paticipation
  • optional

public addType(type: string | URI) source

Add a type to this Interaction.

Parameters:

NameTypeAttributeDescription
type string | URI
  • optional

Attempt to resolve participations by URI.