Skip to content

Commit

Permalink
Update documentation, see #195
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 29, 2024
1 parent cb8a0aa commit 1035c67
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/common/BinStrategy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023-2024, University of Colorado Boulder

/**
* BinStrategy is a string literal union enumeration that describes the user preference to view the histogram bins
* BinStrategy is a string literal union enumeration that describes the user preference to size the histogram bins
* by width or by total number of bins.
*
* @author Sam Reid (PhET Interactive Simulations)
Expand Down
25 changes: 23 additions & 2 deletions js/common/PDLQueryParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,54 @@ import { BinStrategyValues } from './BinStrategy.js';
import PDLConstants from './PDLConstants.js';

const SCHEMA_MAP = {

/**
* Whether to auto-generate data for the simulation.
* - This is false by default, which means the user watches the data set accumulate.
* - When true, this automatically generates a full set of data when the launch button is pressed. If the
* launch button is pressed when there is already a full set of data, the data is cleared and regenerated.
*
* This is connected to a PhET-iO instrumented Property and can be controlled via the Preferences dialog.
*/
autoGenerateData: {
type: 'boolean' as const,
defaultValue: false,
public: true
},

/**
* Whether the selected projectile type affects the speed.
* - When true (the default), pumpkins, pianos and cannonballs have different launch speeds.
* - When false, all projectiles have the same launch speed.
*
* This is connected to a PhET-iO instrumented Property and can be controlled via the Preferences dialog.
*/
projectileTypeAffectsSpeed: {
type: 'boolean' as const,
defaultValue: true,
public: true
},

/**
* The user can choose whether to size the histogram bins based by width or by the total number of bins.
*
* This is connected to a PhET-iO instrumented Property and can be controlled via the Preferences dialog.
*/
binStrategy: {
type: 'string' as const,
validValues: BinStrategyValues,
defaultValue: 'binWidth',
public: true
},

// Per field for VSM, for testing.
// The maximum number of Projectiles per field for the VSM screens, to streamline testing and development.
maxProjectilesVSMField: {
type: 'number' as const,
defaultValue: PDLConstants.MAX_PROJECTILES_VSM_FIELD_DEFAULT,
public: false
},

// Max per field for Sampling, for testing.
// The maximum number of samples per field for the Sampling screen, to streamline testing and development.
maxSamples: {
type: 'number' as const,
defaultValue: 200,
Expand Down

0 comments on commit 1035c67

Please sign in to comment.