1 package net.mograsim.machine.mi.parameters;
3 import net.mograsim.machine.mi.parameters.MicroInstructionParameter.ParameterType;
5 public interface ParameterClassification
8 * Determines whether a {@link MicroInstructionParameter} is part of this class of parameters.
10 * @return true if the classification contains the Parameter, false otherwise
12 public default boolean conforms(MicroInstructionParameter param)
14 return param.getType().equals(getExpectedType()) && param.getValue().length() == getExpectedBits();
18 * @return The type of the parameters in this classification.
20 public ParameterType getExpectedType();
23 * @return The number of bits of the parameters in this classification.
25 public int getExpectedBits();
27 public MicroInstructionParameter parse(String toParse);