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

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

public final class JMPSignalSet
extends Object

Represents a set of signals: JMPN, JMPZ and JMPC.
The signals determine the behavior of calculation of next address in micro-program to execute.

Since:
Date: Nov 13, 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 isJmpC()
          Returns whether the signal JMPC is set.
 boolean isJmpN()
          Returns whether the signal JMPN is set.
 boolean isJmpZ()
          Returns whether the signal JMPZ is set.
 JMPSignalSet setJmpC(boolean value)
          Sets a new value for the signal JMPC.
 JMPSignalSet setJmpN(boolean value)
          Sets a new value for the signal JMPN.
 JMPSignalSet setJmpZ(boolean value)
          Sets a new value for the signal JMPZ.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setJmpC

public JMPSignalSet setJmpC(boolean value)
Sets a new value for the signal JMPC.

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

isJmpC

public boolean isJmpC()
Returns whether the signal JMPC is set.

Returns:
true, if the signal JMPC is set.
Since:
Date: Nov 13, 2011

setJmpN

public JMPSignalSet setJmpN(boolean value)
Sets a new value for the signal JMPN.

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

isJmpN

public boolean isJmpN()
Returns whether the signal JMPN is set.

Returns:
true, if the signal JMPN is set.
Since:
Date: Nov 13, 2011

setJmpZ

public JMPSignalSet setJmpZ(boolean value)
Sets a new value for the signal JMPZ.

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

isJmpZ

public boolean isJmpZ()
Returns whether the signal JMPZ is set.

Returns:
true, if the signal JMPZ is set.
Since:
Date: Nov 13, 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.