Skip to content

Commit

Permalink
doc: update type hiearchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Beforerr committed Nov 19, 2024
1 parent ca05834 commit ce67300
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/src/manual/particle-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,27 @@ ChargedParticles.jl provides a flexible type system for representing various typ
## Type Hierarchy

```@raw html
The package uses a exhaustive type hierarchy:
<pre>
AbstractParticle
└── Particle
├── AbstractChargeParticle
│ ├── Particle
├── AbstractFermion
│ ├── AbstractLepton
│ │ ├── Electron
│ │ └── Muon
│ └── AbstractQuark
│ └── Neutron
│ └── ...
└── CustomParticle
</pre>
```

The package uses a simple three-level type hierarchy:
- `AbstractParticle`: Base abstract type for all particles
- `Particle`: Physically meaningful particle type (where symbol encodes the actual type of the particle)
- `AbstractChargeParticle`: Particles that could carry an electric charge.
- `Particle`: Physically meaningful particle type (for ions where symbol encodes the actual type of the particle)
- `CustomParticle`: Custom particle type for user-defined particles (where symbol is just a label)

## Particle Properties
Expand Down

0 comments on commit ce67300

Please sign in to comment.