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

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

public final class CBusSignalSet
extends Object

Represents a set of signals: H , CPP , MAR , MDR , OPC , PC , SP , TOS and LV.
The signals determine whether the result of ALU/Shifter should be written into the specific register.

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 isCpp()
          Returns whether the signal CPP is set.
 boolean isH()
          Returns whether the signal H is set.
 boolean isLv()
          Returns whether the signal LV is set.
 boolean isMar()
          Returns whether the signal MAR is set.
 boolean isMdr()
          Returns whether the signal MDR is set.
 boolean isOpc()
          Returns whether the signal OPC is set.
 boolean isPc()
          Returns whether the signal PC is set.
 boolean isSp()
          Returns whether the signal SP is set.
 boolean isTos()
          Returns whether the signal TOS is set.
 CBusSignalSet setCpp(boolean value)
          Sets a new value for the signal CPP.
 CBusSignalSet setH(boolean value)
          Sets a new value for the signal H.
 CBusSignalSet setLv(boolean value)
          Sets a new value for the signal LV.
 CBusSignalSet setMar(boolean value)
          Sets a new value for the signal MAR.
 CBusSignalSet setMdr(boolean value)
          Sets a new value for the signal MDR.
 CBusSignalSet setOpc(boolean value)
          Sets a new value for the signal OPC.
 CBusSignalSet setPc(boolean value)
          Sets a new value for the signal PC.
 CBusSignalSet setSp(boolean value)
          Sets a new value for the signal SP.
 CBusSignalSet setTos(boolean value)
          Sets a new value for the signal TOS.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setH

public CBusSignalSet setH(boolean value)
Sets a new value for the signal H.

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

isH

public boolean isH()
Returns whether the signal H is set.

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

setOpc

public CBusSignalSet setOpc(boolean value)
Sets a new value for the signal OPC.

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

isOpc

public boolean isOpc()
Returns whether the signal OPC is set.

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

setTos

public CBusSignalSet setTos(boolean value)
Sets a new value for the signal TOS.

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

isTos

public boolean isTos()
Returns whether the signal TOS is set.

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

setCpp

public CBusSignalSet setCpp(boolean value)
Sets a new value for the signal CPP.

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

isCpp

public boolean isCpp()
Returns whether the signal CPP is set.

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

setLv

public CBusSignalSet setLv(boolean value)
Sets a new value for the signal LV.

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

isLv

public boolean isLv()
Returns whether the signal LV is set.

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

setSp

public CBusSignalSet setSp(boolean value)
Sets a new value for the signal SP.

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

isSp

public boolean isSp()
Returns whether the signal SP is set.

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

setPc

public CBusSignalSet setPc(boolean value)
Sets a new value for the signal PC.

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

isPc

public boolean isPc()
Returns whether the signal PC is set.

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

setMdr

public CBusSignalSet setMdr(boolean value)
Sets a new value for the signal MDR.

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

isMdr

public boolean isMdr()
Returns whether the signal MDR is set.

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

setMar

public CBusSignalSet setMar(boolean value)
Sets a new value for the signal MAR.

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

isMar

public boolean isMar()
Returns whether the signal MAR is set.

Returns:
true, if the signal MAR 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.