JS: use parseInt rather than boxing/unboxing an Integer

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: pull out a helper for evaluating all the conditional events

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: combine the ConditonalHandle into EventHandle

This allows a single type of handle to be used for all events, and allows conditional
events that have scheduled to execute to be killed/interrupted which was a gap
in the original functionality.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: reuse events that are interrupted or killed

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: remove the Entity wrapper for event killing and interrupting

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: make the interrupt and kill paths the same for ConditionalEvents

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: pull out a setup helper to encapsulate Process initialization code

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: shrink the EventHandle class by holding a single event ref

This makes testing for a scheduled handle cheaper and avoids the possibility
of breaking the state machien later by handling two events.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: consolidate the removal code when pulling out an event by-handle

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: ensure killed/interrupted events are reused when they are the head event

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: use the removeEvent function even when executing the next event

We have a fast-pacth up front for removing the head event, adds an extra test to
the fast path.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: rely on removeEvent doing all the required bookeeping

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: remove the early-return behavior from waitUntil

Similar to the waitTicks method, always schedule a conditional event if called,
provide a wrapper in the Entity class to get the previous behavior that tests the
Conditional before scheduling.

Also adds the missing check for a conditional thread in the scheduleUntil method.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added Threshold ProcessTargets doOpen and doClose

Allows scheduleProcess to be called to open and close thresholds

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: update version to 2014-38

Signed-off-by: Stephen Wong <stephen.wong@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: add a Location keyword to the Weibull distribution

This keyword allows the distribution to be shifted around instead of starting at
zero by default.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: introduce nextTime helpers for TimeSeries not denominated in hours

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Force collada loader to only read texture coordinate set 0

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Specifically set texture wrap modes at texture bind time

This may have negative effects on performance but is needed for
correctness.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: reset the default value for a blank input to InputAgent

Also ensure that updateForInput is called with a valid valueString set.

Signed-off-by: Harry King <harry.king@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>