setLaneChangeMode(string, integer) -> None

        Sets the vehicle's lane change mode as a bitset.
543615
def setLaneChangeMode(self, vehID, lcm):
        
        self._connection._sendIntCmd(
            tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_LANECHANGE_MODE, vehID, lcm)
1294683
def setDirty(self, state=True):
        
        self._dirty = state

        # set if this connection should be visible
        if self._inputNode and self._outputNode:
            vis = self._inputNode.isVisible() and self._outputNode.isVisible()
            self.setVisible(vis)
104730
def setmode(mode):
    
    if hasattr(mode, '__getitem__'):
        set_custom_pin_mappings(mode)
        mode = CUSTOM

    assert mode in [BCM, BOARD, SUNXI, CUSTOM]
    global _mode
    _mode = mode
221778
def set_mode(self, mode, custom_mode = 0, custom_sub_mode = 0):
        ''''''
        mav_autopilot = self.field('HEARTBEAT', 'autopilot', None)
        if mav_autopilot == mavlink.MAV_AUTOPILOT_PX4:
            self.set_mode_px4(mode, custom_mode, custom_sub_mode)
        else:
            self.set_mode_apm(mode)
647644
@Nonnull
  public final IMPLTYPE setMode (@Nonnull final EHCScriptInlineMode eMode)
  {
    m_eScriptMode = ValueEnforcer.notNull (eMode, "Mode");
    return thisAsT ();
  }
1226250
def setStop(self, vehID, edgeID, pos=1., laneIndex=0, duration=2**31 - 1,
                flags=tc.STOP_DEFAULT, startPos=tc.INVALID_DOUBLE_VALUE, until=-1):
        
        self._connection._beginMessage(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_STOP,
                                       vehID, 1 + 4 + 1 + 4 + len(edgeID) + 1 + 8 + 1 + 1 + 1 + 4 + 1 + 1 + 1 + 8 + 1 + 4)
        self._connection._string += struct.pack("!Bi", tc.TYPE_COMPOUND, 7)
        self._connection._packString(edgeID)
        self._connection._string += struct.pack("!BdBBBiBB", tc.TYPE_DOUBLE, pos,
                                                tc.TYPE_BYTE, laneIndex, tc.TYPE_INTEGER, duration, tc.TYPE_BYTE, flags)
        self._connection._string += struct.pack("!BdBi",
                                                tc.TYPE_DOUBLE, startPos, tc.TYPE_INTEGER, until)
        self._connection._sendExact()
230530
public int setState(boolean state, boolean bDisplayOption, int moveMode)
    {
        double value = 0;
        if (state)
            value = 1;
        return this.setValue(value, bDisplayOption, moveMode);  // Move value to this field
    }
438644
def _set_mode(self):
        
        if self.mode is not None:
            logger.debug("changing permission bits of %s to %s", self.path, oct(self.mode))
            os.chmod(self.path, self.mode)
1132613
def setVia(self, vehID, edgeList):
        
        if isinstance(edgeList, str):
            edgeList = [edgeList]
        self._connection._beginMessage(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_VIA, vehID,
                                       1 + 4 + sum(map(len, edgeList)) + 4 * len(edgeList))
        self._connection._packStringList(edgeList)
        self._connection._sendExact()
208113
def setSpeedDeviation(self, typeID, deviation):
        
        self._connection._sendDoubleCmd(
            tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_DEVIATION, typeID, deviation)
1262098
def setVehicleClass(self, typeID, clazz):
        
        self._connection._sendStringCmd(
            tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_VEHICLECLASS, typeID, clazz)
834631
def toggle_bit(self, position: int):
        
        if position > (self._bit_width - 1):
            raise ValueError('position greater than the bit width')

        self._value ^= (1 << position)
        self._text_update()
839906
public int setState(boolean state, boolean bDisplayOption, int iMoveMode)
    {       // Must be overidden
        m_bSetData = true;  // Make sure getNextConverter is called correctly (if it is called).
        int iErrorCode = super.setState(state, bDisplayOption, iMoveMode);
        m_bSetData = false;
        return iErrorCode;
    }
1074604
public void setDeliveryMode(Integer deliveryMode) {
        if (deliveryMode == null) {
            _properties.remove(AMQP_PROP_DELIVERY_MODE);
            return;
        }
        
        // Perhaps, we could do an enum for deliveryMode. But, it will require
        // some major changes in encoding and decoding and we don't have much
        // time to do it across all the clients.
        int value = deliveryMode.intValue();
        if ((value != 1) && (value != 2)) {
            String s = "AMQP 0-9-1 spec mandates 'deliveryMode' value to be " +
                       "either 1(for non-persistent) or 2(for persistent)";
            throw new IllegalStateException(s);
        }
        
        _properties.put(AMQP_PROP_DELIVERY_MODE, deliveryMode);
    }
555055
void setBus(String busName)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus", busName);
    this.busName = busName;
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus");
  }
667808
def setType(self, vehID, typeID):
        
        self._connection._sendStringCmd(
            tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TYPE, vehID, typeID)
741468
public static int setBit(int value, int bitNumber, boolean bitValue) {
    if (bitValue) {
      return setBitOn(value, bitNumber);
    } else {
      return setBitOff(value, bitNumber);
    }
  }