WorkflowOccupant

WorkflowOccupant

Class representing a occupant

Constructor

new WorkflowOccupant(name_or_occupant, position, body_parts)

Source:
Example
let occupant = new WorkflowOccupant(
                             "Humanetics HIII 50M 1.5",
                             WorkflowOccupant.DRIVER,
                             [body_part1, body_part2]);
Parameters:
Name Type Description
name_or_occupant string | Occupant Occupant or name constant
position string Occupant position constant (WorkflowOccupant.DRIVER|WorkflowOccupant.FRONT_PASSENGER|WorkflowOccupant.REAR_DRIVER_SIDE|WorkflowOccupant.REAR_MIDDLE|WorkflowOccupant.REAR_PASSENGER_SIDE)
body_parts Array.<OccupantBodyPart> Array of OccupantBodyPart instances

Members

body_parts :Array.<OccupantBodyPart>

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

bottom_abdomen_irtracc_length :number

Description:
  • Bottom abdomen irtracc length
Source:
Bottom abdomen irtracc length
Type:
  • number

bottom_rib_irtracc_length :number

Description:
  • Bottom rib irtracc length
Source:
Bottom rib irtracc length
Type:
  • number

mid_rib_irtracc_length :number

Description:
  • Middle rib irtracc length
Source:
Middle rib irtracc length
Type:
  • number

name :string

Description:
  • Occupant name constant
Source:
Occupant name constant
Type:
  • string

physiology :string

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

product :string

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

SetOccupantFields

Description:
  • Set the occupant supplier, product, physiology and version fields this is because the supplier, product, physiology and version are all a set of variables that should not be changed independently. This is why there are no specific setters for each of them individually NOTE: This function takes an occupant name string or Occupant class
Source:
Set the occupant supplier, product, physiology and version fields this is because the supplier, product, physiology and version are all a set of variables that should not be changed independently. This is why there are no specific setters for each of them individually NOTE: This function takes an occupant name string or Occupant class

supplier :string

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

upper_abdomen_irtracc_length :number

Description:
  • Upper abdomen irtracc length
Source:
Upper abdomen irtracc length
Type:
  • number

upper_rib_irtracc_length :number

Description:
  • Upper rib irtracc length
Source:
Upper rib irtracc length
Type:
  • number

version :string

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

Methods

(static) CreateFromUserData(user_data_occupant) → {WorkflowOccupant}

Description:
  • Creates a Workflow occupant from user data.
Source:
Example
for (let o of user_data.occupants) {
    let occupant = WorkflowOccupant.CreateFromUserData(o);
}
Parameters:
Name Type Description
user_data_occupant Object A single occupant object from user data
Returns:
Type
WorkflowOccupant

(static) CreateWorkflowOccupantFromOccupant(name_or_occupant, position) → {WorkflowOccupant}

Description:
  • Returns a WorkflowOccupant with the required OccupantBodyParts and OccupantEntitys. The entity IDs are set to 0.
Source:
Example
let occupant = WorkflowOccupant.CreateWorkflowOccupantFromOccupant(
                            WorkflowOccupant.HUMANETICS_HIII_50M_V1_5,
                            WorkflowOccupant.DRIVER);
Parameters:
Name Type Description
name_or_occupant Occupant | string Occupant from JSON
position string Occupant position
Returns:
Type
WorkflowOccupant

(static) fromString() → {string}

Description:
  • From string representation with hypens and underscores replaced with spaces and first letter capitalized
Source:
Example
let s = WorkflowOccupant.fromString("Rear-driver-side");
Returns:
Type
string

(static) Physiologies() → {Array.<string>}

Description:
  • Return an array of all the available physiology strings
Source:
Example
let physiologies = WorkflowOccupant.Physiologies();
Returns:
Type
Array.<string>

(static) Products() → {Array.<string>}

Description:
  • Return an array of all the available Product type strings
Source:
Example
let Products = WorkflowOccupant.Products();
Returns:
Type
Array.<string>

(static) Suppliers() → {Array.<string>}

Description:
  • Return an array of all the available supplier strings
Source:
Example
let suppliers = WorkflowOccupant.Suppliers();
Returns:
Type
Array.<string>

(static) Versions() → {Array.<string>}

Description:
  • Return an array of all the available occupant name strings
Source:
Example
let version_names = WorkflowOccupant.Versions();
Returns:
Type
Array.<string>

GetBodyPartByType(body_part_type) → (nullable) {OccupantBodyPart}

Description:
  • Get an OccupantBodyPart by body part type
Source:
Example
let body_part = occupant.GetBodyPartByType(OccupantBodyPart.HEAD);
Parameters:
Name Type Description
body_part_type string Body part type
Returns:
Type
OccupantBodyPart

GetChestRotationFactors() → (nullable) {OccupantChestRotationFactors}

Description:
  • Returns the factors to convert the chest rotation values in radian to a deflection in mm
Source:
Returns:
Type
OccupantChestRotationFactors

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

GetEntityTypeFromTag(tag) → (nullable) {string}

Description:
  • Get an OccupantEntity type by tag
Source:
Example
let entity_type = occupant.GetEntityTypeFromTag(OccupantEntity.NECK_LOADCELL);
Parameters:
Name Type Description
tag string Entity tag
Returns:
Type
string

GetNIJCriticalLoads() → {NIJCriticalLoads}

Description:
  • Returns the NIJ critical loads for the occupant
Source:
Returns:
Type
NIJCriticalLoads

GetTibiaIndexCriticalLoads() → {TibiaIndexCriticalLoads}

Description:
  • Returns the NIJ critical loads for the occupant
Source:
Returns:
Type
TibiaIndexCriticalLoads

ReadRawBodyPartMeasurements(model, body_part_type) → {ComponentMeasurementCurves}

Description:
  • Reads the raw body part measurements into T/HIS and returns them in a ComponentMeasurementCurves instance
Source:
Parameters:
Name Type Description
model Model model to read data from
body_part_type string Body part type to read data for
Returns:
Type
ComponentMeasurementCurves

toJSON() → {object}

Description:
  • JSON representation
Source:
Example
let json = occupant.toJSON();
Returns:
Type
object

toString() → {string}

Description:
  • String representation used in gui
Source:
Example
let s = occupant.toString();
Returns:
Type
string