def CompatibleAllocatedModules(Task, CurrentSched, TaskMapping):
    """ 
	return a sublist of allocated modules that are compatible with Task.
	"""
    CompModList = []
    CompModule = TaskMapping[Task]
    for AllocatedModule in CurrentSched.keys():
        if AllocatedModule.Name == CompModule.Name:
            CompModList.append(AllocatedModule)
    return CompModList
