caoss.simulator.instructions

## Class MemoryAccess

- java.lang.Object
- - caoss.simulator.instructions.MemoryAccess

- All Implemented Interfaces:
    Instruction
  Direct Known Subclasses:
    MemoryLoad, MemoryStore

      public abstract class MemoryAccess
      extends java.lang.Object
      implements Instruction

  Base class for a memory access instruction It factorizes many of the operations common to load and store operations
  Author:
    Herve Paulino

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MemoryAccess(long address)` Construct the memory access operation

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCPUClocks()` The number of the CPU clocks the instruction takes to execute

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface caoss.simulator.instructions.Instruction

      `run`

- - ### Constructor Detail

    - #### MemoryAccess

          public MemoryAccess(long address)

      Construct the memory access operation
      Parameters:
        `address` - The address upon which the operation is performed

  - ### Method Detail

    - #### getCPUClocks

          public int getCPUClocks()

      Description copied from interface: `Instruction`
      The number of the CPU clocks the instruction takes to execute
      Specified by:
        `getCPUClocks` in interface `Instruction`
      Returns:
        The number of the CPU clocks