jmce - 1_02

jmce.sim
Class TapePulse

java.lang.Object
  extended by jmce.sim.TapePulse

public class TapePulse
extends java.lang.Object

Class for single tape pulse event. The output must be changed after the pulse is elapsed.

Since:
1.02
Version:
1.00
Author:
Mario Viara

Field Summary
static int DATA_HIGH
          The output must be set to high
static int DATA_LOW
          The output must be set to low
static int DATA_NONE
          The output must be unchanged
static int DATA_TOGGLE
          The output must be changed
 
Constructor Summary
TapePulse(int width)
          Constructor with only pulse width the pulse type will be DATA_TOGGLE.
TapePulse(int type, int width)
          Constructor with type and pulse width.
 
Method Summary
 int getType()
          Return the pulse type
 int getWidth()
          Return the pulse width
 boolean isHigh()
          Return true if the pulse type is DATA_HIGH
 boolean isLow()
          Return true if the pulse type is DATA_LOW
 boolean isToggle()
          Return true if the pulse type is DATA_TOGGLE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_NONE

public static final int DATA_NONE
The output must be unchanged

See Also:
Constant Field Values

DATA_LOW

public static final int DATA_LOW
The output must be set to low

See Also:
Constant Field Values

DATA_HIGH

public static final int DATA_HIGH
The output must be set to high

See Also:
Constant Field Values

DATA_TOGGLE

public static final int DATA_TOGGLE
The output must be changed

See Also:
Constant Field Values
Constructor Detail

TapePulse

public TapePulse(int type,
                 int width)
Constructor with type and pulse width.


TapePulse

public TapePulse(int width)
Constructor with only pulse width the pulse type will be DATA_TOGGLE.

Method Detail

getWidth

public int getWidth()
Return the pulse width


getType

public int getType()
Return the pulse type


isToggle

public boolean isToggle()
Return true if the pulse type is DATA_TOGGLE


isLow

public boolean isLow()
Return true if the pulse type is DATA_LOW


isHigh

public boolean isHigh()
Return true if the pulse type is DATA_HIGH


jmce - 1_02