JS: Fix for collada loader, handle empty triangle lists better

This is a work around for non-compliant exporters.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Limit texture loading to spawning a single thread

This is to prevent memory depletion when loading multiple big textures at
once.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: begin consistantly using tick/time nomenclature in Event

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: cosmentic cleanup and comment addition in Event

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: move helper out of Event, work towards a dumb-data approach for Event

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: move remaining parts of Event into EventManager

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: remove a long-unused RandomGenerator class

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: hide all tick-second conversion in helpers rather than exposing conversion factors

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: make more tick-based methods have consistent naming

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: rename some more tick-based variables

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: remove some now unnecessary Class lookups

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS3D: implement ActionListener rather than providing an anonymous inner class

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added SampleInput method setUnitType

This method is to be called after the SampleInput constructor
This change allows a SampleInput to be given a default value of null.

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
All: Removed ProbabilityDistribution initialize, replaced with earlyInit

This change is required because ModelEntity properties downtimeIATDistribution and downtimeDurationDistribution are
about to be converted to SampleInputs for which getValue returns a SampleProvider, which may not have the method initialize.

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Moved second random generator from Distribution to GammaDistribution, LogNormalDistribution, and NormalDistribution

These are the only distributions that require a second random generator.

This change is needed to duplicate results between the new ContinuousDistribution and the old ProbabilityDistribution
by preventing the ContinuousDistribution from taking an extra sample during earlyInit.

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Made ProbabilityDistribution implement SampleProvider

This will allow existing ProbabilityDistribution inputs to work when they have been converted to SampleInputs

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Refactor MeshProtoKey generation out of ColladaModel

It never really belonged there in the first place.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added ColladaEntityFactory to build up a scene from a dir of dae files

This is still slightly experimental.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Modify AABB to be built from a list of Vec3d

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Add Z bump to ScreenPoints model

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>