com.github.croesch.micro_debug.mic1.controlstore
Class ALUSignalSet

java.lang.Object
  extended by com.github.croesch.micro_debug.mic1.controlstore.ALUSignalSet

public final class ALUSignalSet
extends Object

Represents a set of signals: SLL8, SRA1, F0, F1, ENA , ENB, INVA and INC.
The signals determine the behavior of ALU and Shifter.

Since:
Date: Nov 12, 2011
Author:
croesch

Method Summary
 void copyOf(com.github.croesch.micro_debug.mic1.controlstore.SignalSet set)
          Copies all signals from the given set to this set.
 boolean equals(Object obj)
           
 int getSize()
          Returns the number of signals this set contains.
 int hashCode()
           
 boolean isAnythingSet()
          Returns whether any of the signals is set.
 boolean isEnA()
          Returns whether the signal ENA is set.
 boolean isEnB()
          Returns whether the signal ENB is set.
 boolean isF0()
          Returns whether the signal F0 is set.
 boolean isF1()
          Returns whether the signal F1 is set.
 boolean isInc()
          Returns whether the signal INC is set.
 boolean isInvA()
          Returns whether the signal INVA is set.
 boolean isSLL8()
          Returns whether the signal SLL8 is set.
 boolean isSRA1()
          Returns whether the signal SRA1 is set.
 ALUSignalSet setEnA(boolean value)
          Sets a new value for the signal ENA.
 ALUSignalSet setEnB(boolean value)
          Sets a new value for the signal ENB.
 ALUSignalSet setF0(boolean value)
          Sets a new value for the signal F0.
 ALUSignalSet setF1(boolean value)
          Sets a new value for the signal F1.
 ALUSignalSet setInc(boolean value)
          Sets a new value for the signal INC.
 ALUSignalSet setInvA(boolean value)
          Sets a new value for the signal INVA.
 ALUSignalSet setSLL8(boolean value)
          Sets a new value for the signal SLL8.
 ALUSignalSet setSRA1(boolean value)
          Sets a new value for the signal SRA1.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setSLL8

public ALUSignalSet setSLL8(boolean value)
Sets a new value for the signal SLL8.

Parameters:
value - the new value for the signal SLL8.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isSLL8

public boolean isSLL8()
Returns whether the signal SLL8 is set.

Returns:
true, if the signal SLL8 is set.
Since:
Date: Nov 12, 2011

setSRA1

public ALUSignalSet setSRA1(boolean value)
Sets a new value for the signal SRA1.

Parameters:
value - the new value for the signal SRA1.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isSRA1

public boolean isSRA1()
Returns whether the signal SRA1 is set.

Returns:
true, if the signal SRA1 is set.
Since:
Date: Nov 12, 2011

setF0

public ALUSignalSet setF0(boolean value)
Sets a new value for the signal F0.

Parameters:
value - the new value for the signal F0.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isF0

public boolean isF0()
Returns whether the signal F0 is set.

Returns:
true, if the signal F0 is set.
Since:
Date: Nov 12, 2011

setF1

public ALUSignalSet setF1(boolean value)
Sets a new value for the signal F1.

Parameters:
value - the new value for the signal F1.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isF1

public boolean isF1()
Returns whether the signal F1 is set.

Returns:
true, if the signal F1 is set.
Since:
Date: Nov 12, 2011

setEnA

public ALUSignalSet setEnA(boolean value)
Sets a new value for the signal ENA.

Parameters:
value - the new value for the signal ENA.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isEnA

public boolean isEnA()
Returns whether the signal ENA is set.

Returns:
true, if the signal ENA is set.
Since:
Date: Nov 12, 2011

setEnB

public ALUSignalSet setEnB(boolean value)
Sets a new value for the signal ENB.

Parameters:
value - the new value for the signal ENB.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isEnB

public boolean isEnB()
Returns whether the signal ENB is set.

Returns:
true, if the signal ENB is set.
Since:
Date: Nov 12, 2011

setInvA

public ALUSignalSet setInvA(boolean value)
Sets a new value for the signal INVA.

Parameters:
value - the new value for the signal INVA.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isInvA

public boolean isInvA()
Returns whether the signal INVA is set.

Returns:
true, if the signal INVA is set.
Since:
Date: Nov 12, 2011

setInc

public ALUSignalSet setInc(boolean value)
Sets a new value for the signal INC.

Parameters:
value - the new value for the signal INC.
Returns:
instance of this object for fluent API.
Since:
Date: Nov 12, 2011

isInc

public boolean isInc()
Returns whether the signal INC is set.

Returns:
true, if the signal INC is set.
Since:
Date: Nov 12, 2011

getSize

public final int getSize()
Returns the number of signals this set contains.

Returns:
the number of signals this set contains, greater or equal than zero
Since:
Date: Jan 14, 2012
See Also:
SignalSet#Mic1SignalSet(int)

isAnythingSet

public final boolean isAnythingSet()
Returns whether any of the signals is set.

Returns:
true, if at least one of the signals is set,
false otherwise.
Since:
Date: Jan 14, 2012

copyOf

public void copyOf(com.github.croesch.micro_debug.mic1.controlstore.SignalSet set)
Copies all signals from the given set to this set. If the given set is null or the number of signals are different to the signals in this object, nothing is done.

Parameters:
set - the set to fetch the signals from
Since:
Date: Nov 13, 2011

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.