Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelPlugin

The ModelPlugin builds the basic data model from the abstract syntax tree (AST) in the [[IArgdownResponse.ast]] response property that is provided by the ParserPlugin. This includes the following response object properties:

  • [[IArgdownResponse.statements]]
  • [[IArgdownResponse.arguments]]
  • [[IArgdownResponse.relations]]
  • [[IArgdownResponse.sections]]

Most of the other plugins depend on the data produced by this plugin. Whenever possible plugins should use the data processed by this plugin instead of working with the AST nodes directly.

depends on data from: ParserPlugin

Hierarchy

  • ModelPlugin

Implements

Index

Constructors

constructor

Properties

defaults

name

name: string = "ModelPlugin"

ruleListeners

ruleListeners: object

Type declaration

tokenListeners

tokenListeners: object

Type declaration

Methods

getSettings

prepare

  • prepare(request: IArgdownRequest): void

run

  • run(request: IArgdownRequest, response: IArgdownResponse): IArgdownResponse

transformArgumentRelations

  • transformArgumentRelations(response: IArgdownResponse): void
  • Transforms outgoing relations of arguments with an assigned pcs into outgoing relations of the pcs's main conclusion. Transforms incoming undercut relations of arguments with an assigned pcs into undercut relations of the pcs's last inference.

    Parameters

    • response: IArgdownResponse

    Returns void

transformStatementRelations

  • transformStatementRelations(response: IArgdownResponse): void
  • Change dialectical types of statement-to-statement relations to semantic types. Support relations become entails relations. Attack relations become contrary relations. Equivalent contrary relations are merged (e.g. [A] - [B] and [B] - [A]).

    Parameters

    • response: IArgdownResponse

    Returns void

Generated using TypeDoc