Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tape

Hierarchy

  • Tape

Index

Constructors

constructor

Properties

Private content

content: TapeSymbol[]

Private headPosition

headPosition: number

Static Private EMPTY_CELL_FILLING_CHAR

EMPTY_CELL_FILLING_CHAR: string = " "

Methods

applyHeadAction

clearContent

  • clearContent(): void

export

Private fillEmptyCellsBefore

  • fillEmptyCellsBefore(index?: number): void
  • Parameters

    • Default value index: number = this.content.length

    Returns void

getContent

getContentAsString

  • getContentAsString(): string

getCurrentSymbol

getHeadPosition

  • getHeadPosition(): number

getSymbolAt

resetHeadPosition

  • resetHeadPosition(): void

setContent

setContentFromString

  • setContentFromString(content: string): void

setCurrentSymbol

setSymbolAt

  • setSymbolAt(index: number, symbol: TapeSymbol): void

toString

  • toString(): string

Static fromExport

Generated using TypeDoc