()
| 18261 | return Math.max(...this.programAsAtoms.map(line => line.length)) |
| 18262 | } |
| 18263 | get allTypedAtoms() { |
| 18264 | const atoms = [] |
| 18265 | this.topDownArray.forEach(particle => particle.atomTypes.forEach((atom, index) => atoms.push(new TypedAtom(particle, index, atom.atomTypeId)))) |
| 18266 | return atoms |
| 18267 | } |
| 18268 | findAllAtomsWithAtomType(atomTypeId) { |
| 18269 | return this.allTypedAtoms.filter(typedAtom => typedAtom.type === atomTypeId) |
| 18270 | } |