Home Reference Source
public class | source

Participation

Extends:

Identified → Participation

Class to represent a participation in an Interaction.

Constructor Summary

Public Constructor
public

constructor(sbolDocument: *, uri: *)

Member Summary

Public Members
public get

Retrieve the list of participants for this Participation.

public get

roles: URI[]: *

Retrieve the list of roles assigned to this Participation.

Method Summary

Public Methods
public

addParticipant(participant: string | URI | FunctionalComponent)

Add a participant to this Participation.

public

addRole(role: string | URI)

Assign a role to this Participation.

public

link()

Attempt to resolve all participants by URI.

Public Constructors

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

Parameters:

NameTypeAttributeDescription
sbolDocument *
uri *

Public Members

public get participants: FunctionalComponent[]: * source

Retrieve the list of participants for this Participation. There may be URIs present in this list if the participant(s) have not yet been resolved.

Returns:

FunctionalComponent[]

public get roles: URI[]: * source

Retrieve the list of roles assigned to this Participation.

Returns:

URI[]

[roles]

Public Methods

public addParticipant(participant: string | URI | FunctionalComponent) source

Add a participant to this Participation.

Parameters:

NameTypeAttributeDescription
participant string | URI | FunctionalComponent
  • optional

public addRole(role: string | URI) source

Assign a role to this Participation.

Parameters:

NameTypeAttributeDescription
role string | URI
  • optional

Attempt to resolve all participants by URI.