Occupant

Occupant

new Occupant(supplier, product, physiology, version, body_parts, chest_rotation_factorsopt, nullable)

Description:
  • Class to define an Occupant with a name supplier product and version number to extract the data for the measurement
Source:
Example
let m = new Occupant(OccupantSupplier.ATD,
                     OccupantProduct.HIII,
                     OccupantPhysiology.M50,
                     "1.0.7"});
Parameters:
Name Type Attributes Default Description
supplier string Supplier of dummy product
product string Product type (e.g. HIII, WSID, SBD2)
physiology string Product physiology (e.g. 50th percentile male, 6 year old child)
version string Product version number/name
body_parts Array.<OccupantBodyPart> Array of body parts [default] empty array []
chest_rotation_factors OccupantChestRotationFactors <optional>
<nullable>
null used for hybrid 3 occupants

Members

body_parts :Array.<OccupantBodyPart>

Description:
  • Array of OccupantBodyPart instances
Source:
Array of OccupantBodyPart instances
Type:

(nullable) chest_rotation_factors :OccupantChestRotationFactors

Description:
  • Occupant chest rotation factors
Source:
Occupant chest rotation factors
Type:

name :string

Description:
  • Occupant name (constructed from supplier, product, physiology and version)
Source:
Occupant name (constructed from supplier, product, physiology and version)
Type:
  • string

physiology :string

Description:
  • Occupant physiology
Source:
Occupant physiology
Type:
  • string

product :string

Description:
  • Occupant product
Source:
Occupant product
Type:
  • string

supplier :string

Description:
  • Occupant supplier
Source:
Occupant supplier
Type:
  • string

version :string

Description:
  • Occupant version
Source:
Occupant version
Type:
  • string

Methods

(static) FromJSON(json) → (nullable) {Occupant}

Description:
  • construct an Occupant from JSON
Source:
Parameters:
Name Type Description
json Object JSON of occupant
Returns:
Type
Occupant

(static) FromJSONFile(occupant_filename) → (nullable) {Occupant}

Description:
  • construct an Occupant from a JSON file
Source:
Parameters:
Name Type Description
occupant_filename string JSON file of occupant
Returns:
Type
Occupant

GetEntityByTag(tag) → (nullable) {OccupantEntity}

Description:
  • Get an OccupantEntity by tag
Source:
Example
let entity = occupant.GetEntityByTag(OccupantEntity.HEAD_NODE);
Parameters:
Name Type Description
tag string Entity tag
Returns:
Type
OccupantEntity

toJSON()

Description:
  • convert occupant to JSON representation
Source: