All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qbicc.graph.Unschedulable Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package org.qbicc.graph;

/**
 * Represents a node that cannot be scheduled.
 */
public interface Unschedulable extends Node {
    @Override
    default int getScheduleIndex() {
        return -1;
    }

    @Override
    default void setScheduleIndex(int index) {
        throw new UnsupportedOperationException("Cannot schedule unschedulable node");
    }

    @Override
    default BasicBlock getScheduledBlock() {
        return null;
    }

    @Override
    default int getBlockIndex() {
        return -1;
    }

    @Override
    default void setScheduledBlock(BasicBlock block) {
        throw new UnsupportedOperationException("Cannot schedule unschedulable node");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy