Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright The Sett Ltd, 2005 to 2014.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.thesett.aima.logic.fol.wam.machine;

WAMResolvingMachineDPIMonitor is a call-back interface, that can be attached to a WAMResolvingMachineDPI, in order to receive notification of certain events published by the abstract machine through it debugging interface.

CRC Card
Responsibilities Collaborations
Accept notification of the machine being reset.
Accept notification that the machine has stepped by one instruction.
Accept notification that the machine is starting a code execution.

Author(s):
Rupert Smith
{
    
Accepts notification that the machine has been reset.

Parameters:
dpi The machines DPI
    void onReset(WAMResolvingMachineDPI dpi);

    
Accepts notification of changes to byte code loaded into the machine.

Parameters:
dpi The machines DPI.
start The start offset of the changed byte code within the machines code buffer.
length The length of the changed byte code within the machines code buffer.
    void onCodeUpdate(WAMResolvingMachineDPI dpiint startint length);

    
Accepts notification that the machine is starting a code execution.

Parameters:
dpi The machines DPI
    void onExecute(WAMResolvingMachineDPI dpi);

    
Accepts notification that the machine has been stepped by one instruction.

Parameters:
dpi The machines DPI
    void onStep(WAMResolvingMachineDPI dpi);
New to GrepCode? Check out our FAQ X