@classmethod
def getSched(cls):
    """Get AWLSIM_SCHED.
		Returns one of the SCHED_... constants.
		Returns None, if AWLSIM_SCHED has an invalid value.
		"""
    schedStr = cls.__getVar('SCHED', '').lower().strip()
    ifMulticore = False
    if schedStr.endswith('-if-multicore'):
        schedStr = schedStr[:-len('-if-multicore')]
        ifMulticore = True
    if schedStr == cls.SCHED_DEFAULT:
        return cls.SCHED_DEFAULT
    if schedStr == cls.SCHED_NORMAL or schedStr == 'other':
        return cls.SCHED_NORMAL
    if schedStr == cls.SCHED_FIFO or schedStr == 'realtime':
        if cls.__getCpuCount() <= 1 and ifMulticore:
            return cls.SCHED_NORMAL
        return cls.SCHED_FIFO
    if schedStr == cls.SCHED_RR:
        if cls.__getCpuCount() <= 1 and ifMulticore:
            return cls.SCHED_NORMAL
        return cls.SCHED_RR
    if schedStr == cls.SCHED_DEADLINE:
        if cls.__getCpuCount() <= 1 and ifMulticore:
            return cls.SCHED_NORMAL
        return cls.SCHED_DEADLINE
    return None
