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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package com.thesett.aima.logic.fol.wam.compiler;
WAMCallPoint holds the fields recorded against a predicate name in the call table of an com.thesett.aima.logic.fol.wam.machine.WAMMachine. These describe the predicates entry point, and the length of its byte code.

CRC Card
Responsibilities Collaborations
Record the size and entry point of the byte code for a predicate.
Record the predicates interned name.

Rupert Smith
public class WAMCallPoint
The predicates entry point.
    public int entryPoint;

The predicates length.
    public int length;

The predicates interned name.
    public int name;

Creates a call table entry for the code with the specified entry address and length.

entryPoint The entry address of the code.
length The length of the program at the address.
functorName The functors interned name.
    public WAMCallPoint(int entryPointint lengthint functorName)
        this. = entryPoint;
        this. = length;
        this. = functorName;
New to GrepCode? Check out our FAQ X