Package org.movsim.autogen

Examples of org.movsim.autogen.MacroIC


        // case speed = 0 --> set vehicle ast equilibrium speed

        // generateMacroFields: rho guaranteed to be > RHOMIN, v to be < VMAX

        for (int i = 0; i < size; i++) {
            MacroIC localMacroIC = macroIC.get(i);
            final double rhoLocal = localMacroIC.getDensityPerKm() * Units.INVKM_TO_INVM;
            if (rhoLocal > MovsimConstants.SMALL_VALUE) {
                pos[i] = localMacroIC.getPosition();
                rho[i] = rhoLocal;
                if (hasUserDefinedSpeeds()) {
                    speed[i] = Math.min(localMacroIC.getSpeed(), MovsimConstants.MAX_VEHICLE_SPEED);
                    LOG.debug("speed={}", speed[i]);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.movsim.autogen.MacroIC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.