org.zilonis.util
Class MultiListElement

java.lang.Object
  extended by org.zilonis.util.MultiListElement
All Implemented Interfaces:
IMultiListElement, NextHolder
Direct Known Subclasses:
ActionResult, NegativeJoinResult, NodeInAlphaMemory, Token, WME

public class MultiListElement
extends java.lang.Object
implements NextHolder, IMultiListElement


Constructor Summary
MultiListElement(int numberList)
           
 
Method Summary
 IMultiListElement getNext(int list)
           
 NextHolder getPrev(int list)
           
 void lock(int list, IMultiListElement element)
           
 void remove(int list)
           
 void removeLast(int list, IMultiListElement element)
           
 void setNext(int list, IMultiListElement element)
           
 void setPrev(int list, NextHolder element)
           
 void unlock(int list, IMultiListElement element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiListElement

public MultiListElement(int numberList)
Method Detail

lock

public void lock(int list,
                 IMultiListElement element)
Specified by:
lock in interface IMultiListElement
Specified by:
lock in interface NextHolder

unlock

public void unlock(int list,
                   IMultiListElement element)
Specified by:
unlock in interface IMultiListElement
Specified by:
unlock in interface NextHolder

setNext

public void setNext(int list,
                    IMultiListElement element)
Specified by:
setNext in interface IMultiListElement
Specified by:
setNext in interface NextHolder

removeLast

public void removeLast(int list,
                       IMultiListElement element)
Specified by:
removeLast in interface NextHolder

getNext

public IMultiListElement getNext(int list)
Specified by:
getNext in interface IMultiListElement

getPrev

public NextHolder getPrev(int list)
Specified by:
getPrev in interface IMultiListElement

setPrev

public void setPrev(int list,
                    NextHolder element)
Specified by:
setPrev in interface IMultiListElement

remove

public void remove(int list)
Specified by:
remove in interface IMultiListElement