| import ThreadModel from './Thread.js'; |
| export default class GapModel { |
| constructor(data, thread) { |
| this.thread = thread ?? new ThreadModel(); |
| const a = this.data[1] ?? null; |
| return a != null ? a : 0; |
| this.data[1] = Number(value); |
| return this.data[2] ?? null; |
| setStartMicroseconds(value) { |
| this.data[2] = '' + value; |
| let a = this.getStartMicroseconds(); |
| return this.data[3] ?? null; |
| setEndMicroseconds(value) { |
| this.data[3] = '' + value; |
| let a = this.getEndMicroseconds(); |
| return a ? Number(a) : 0; |
| this.data[4] = '' + value; |