public class InterruptCode extends NamedObject
equals(InterruptCode a, InterruptCode b)
method. It
might come handy to clone an interrupt code object to make it known at
different objects in a model. To produce a clone, create a new interrupt code
using the alternative constructor method giving the interrupt code to be
cloned as a parameter. That constructor will return a clone of the given
interrupt code.Constructor and Description |
---|
InterruptCode(InterruptCode cloneMe)
Constructs a new interrupt code to be an identical clone of the given
interrupt code object.
|
InterruptCode(java.lang.String name)
Produces a new interrupt code with a unique internal serial number and
the given name.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(InterruptCode a,
InterruptCode b)
Returns
true if the two given interrupt codes have the
same internal code, false otherwise. |
int |
getCodeNumber()
Returns the internal unique number to identify different interrupt codes.
|
getName, getQuotedName, toString
public InterruptCode(InterruptCode cloneMe)
cloneMe
- desmoj.InterruptCode : The interrupt code object to produce a
clone ofpublic InterruptCode(java.lang.String name)
name
- java.lang.String : The interrupt code's namepublic static boolean equals(InterruptCode a, InterruptCode b)
true
if the two given interrupt codes have the
same internal code, false
otherwise.a
- desmoj.InterruptCode : First comparandb
- desmoj.InterruptCode : Second comparandtrue
if the two given interrupt codes
have the same internal code, false
otherwisepublic int getCodeNumber()