Interface ListingAddressCorrelation

All Known Implementing Classes:
DummyListingAddressCorrelation, HashedFunctionAddressCorrelation, LinearAddressCorrelation

public interface ListingAddressCorrelation
This is the interface for a correlator that associates addresses from one program with addresses from another program or it can associate addresses from one part of a program with addresses from another part of the same program. Given an address from one program, it can provide the corresponding address for the other program. The two programs are referred to as the LEFT program and the RIGHT program. See Duo.Side
  • Method Details

    • getProgram

      Program getProgram(Duo.Side side)
      Gets the program for the given side.
      Parameters:
      side - LEFT or RIGHT
      Returns:
      the program for the given side
    • getFunction

      Function getFunction(Duo.Side side)
      Gets the function for the given side. This will be null if the addresses are not function based.
      Parameters:
      side - LEFT or RIGHT
      Returns:
      the function for the given side or null if not function based
    • getAddresses

      AddressSetView getAddresses(Duo.Side side)
      Gets the addresses that are part of the correlator for the given side
      Parameters:
      side - LEFT or RIGHT
      Returns:
      the addresses that are part of the correlator for the given side
    • getAddress

      Address getAddress(Duo.Side side, Address otherSideAddress)
      Gets the address for the given side that matches the given address from the other side.
      Parameters:
      side - the side to get an address for
      otherSideAddress - the address from the other side to find a match for
      Returns:
      the address for the given side that matches the given address from the other side.