org.tm4j.tolog
Class InstanceOfExtension

java.lang.Object
  extended byorg.tm4j.tolog.InstanceOfExtension
All Implemented Interfaces:
Extension

Deprecated. from 0.9.5 use the package org.tm4j.tologx.

public class InstanceOfExtension
extends java.lang.Object
implements Extension


Constructor Summary
InstanceOfExtension()
          Deprecated.  
 
Method Summary
protected  void addClassMatch(Topic cls, java.util.List params, java.util.List matches)
          Deprecated.  
protected  boolean getAllClassInstances(java.util.List matches)
          Deprecated.  
protected  boolean getClassMatches(java.util.List params, java.util.List matches)
          Deprecated.  
protected  boolean getInstanceMatches(java.util.List params, java.util.List matches)
          Deprecated.  
protected  boolean getInstanceMatches(TopicTypesIndex tti, Topic cls, java.util.List params, java.util.List matches)
          Deprecated.  
 int getMaxParams()
          Deprecated. The extension should return the maximum number of parameters which it supports.
 void initialise(TopicMap tm)
          Deprecated. This method is called on the extension when the extension is instantiated by the QueryEvaluator and before any calls to the matches() or test() methods.
protected  boolean isInstanceOf(Topic inst, Topic cls)
          Deprecated.  
 boolean matches(java.util.List params, java.util.List matches)
          Deprecated. Extension should return true if the PlayerRole objects in prPairs specify a combination which is valid under this function.
 boolean test(java.util.List params)
          Deprecated. Extension should return true if the PlayerRole objects in prPairs specify a combination which is valid under this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceOfExtension

public InstanceOfExtension()
Deprecated. 
Method Detail

initialise

public void initialise(TopicMap tm)
Deprecated. 
Description copied from interface: Extension
This method is called on the extension when the extension is instantiated by the QueryEvaluator and before any calls to the matches() or test() methods. Implementations may use this method to perform any implementation-specific initialisation that is required.

Specified by:
initialise in interface Extension
Parameters:
tm - the topic map to be queried.

getMaxParams

public int getMaxParams()
Deprecated. 
Description copied from interface: Extension
The extension should return the maximum number of parameters which it supports. A return value of less than 0 indicates that the extension can support any number of parameters.

Specified by:
getMaxParams in interface Extension

matches

public boolean matches(java.util.List params,
                       java.util.List matches)
Deprecated. 
Description copied from interface: Extension
Extension should return true if the PlayerRole objects in prPairs specify a combination which is valid under this function.

Specified by:
matches in interface Extension
Parameters:
params - A list of PlayerRole objects specifying the value of each parameter in the function. The list is in parameter order.
matches - A List to receive each of the possible matches returned by this function (each match is specified as a List of the PlayerRole match value for each parameter postion).

test

public boolean test(java.util.List params)
Deprecated. 
Description copied from interface: Extension
Extension should return true if the PlayerRole objects in prPairs specify a combination which is valid under this function.

Specified by:
test in interface Extension
Parameters:
params - A list of PlayerRole objects specifying the value of each parameter in the function. The list is in parameter order.

getAllClassInstances

protected boolean getAllClassInstances(java.util.List matches)
Deprecated. 

getInstanceMatches

protected boolean getInstanceMatches(java.util.List params,
                                     java.util.List matches)
Deprecated. 

getInstanceMatches

protected boolean getInstanceMatches(TopicTypesIndex tti,
                                     Topic cls,
                                     java.util.List params,
                                     java.util.List matches)
Deprecated. 

getClassMatches

protected boolean getClassMatches(java.util.List params,
                                  java.util.List matches)
Deprecated. 

addClassMatch

protected void addClassMatch(Topic cls,
                             java.util.List params,
                             java.util.List matches)
Deprecated. 

isInstanceOf

protected boolean isInstanceOf(Topic inst,
                               Topic cls)
Deprecated.