org.zilonis.network.production
Class ActionResult

java.lang.Object
  extended by org.zilonis.util.MultiListElement
      extended by org.zilonis.network.production.ActionResult
All Implemented Interfaces:
java.lang.Comparable<ActionResult>, Deletable, BinaryTree<ActionResult>, IMultiListElement, NextHolder

public class ActionResult
extends MultiListElement
implements BinaryTree<ActionResult>, Deletable


Field Summary
static int ASSERT
           
static int MODIFY
           
static int PRINT
           
static int RETRACT
           
 
Constructor Summary
ActionResult(Scope scope, int type, Triplet triplet, int priority)
           
ActionResult(Scope scope, int type, Triplet triplet, Triplet tripletToRemove, int priority)
           
 
Method Summary
 int compareTo(ActionResult actionResult)
           
 void deleteItAndDescendents()
           
 ActionResult getLeft()
           
 IMultiListElement getNext(int list)
           
 NextHolder getPrev(int list)
           
 int getPriority()
           
 ActionResult getRight()
           
 Scope getScope()
           
 Triplet getTriplet()
           
 Triplet getTripletToRemove()
           
 int getType()
           
 boolean isType(int type)
           
 boolean isValid()
           
 void remove(int list)
           
 void removeLast(int list, IMultiListElement element)
           
 void setLeft(ActionResult left)
           
 void setNext(int list, IMultiListElement element)
           
 void setPrev(int list, NextHolder element)
           
 void setRight(ActionResult right)
           
 
Methods inherited from class org.zilonis.util.MultiListElement
lock, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zilonis.util.IMultiListElement
lock, unlock
 

Field Detail

ASSERT

public static final int ASSERT
See Also:
Constant Field Values

RETRACT

public static final int RETRACT
See Also:
Constant Field Values

PRINT

public static final int PRINT
See Also:
Constant Field Values

MODIFY

public static final int MODIFY
See Also:
Constant Field Values
Constructor Detail

ActionResult

public ActionResult(Scope scope,
                    int type,
                    Triplet triplet,
                    int priority)

ActionResult

public ActionResult(Scope scope,
                    int type,
                    Triplet triplet,
                    Triplet tripletToRemove,
                    int priority)
Method Detail

isValid

public boolean isValid()

deleteItAndDescendents

public void deleteItAndDescendents()
Specified by:
deleteItAndDescendents in interface Deletable

remove

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

setNext

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

setPrev

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

getNext

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

getPrev

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

removeLast

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

getScope

public Scope getScope()

getPriority

public int getPriority()

setLeft

public void setLeft(ActionResult left)
Specified by:
setLeft in interface BinaryTree<ActionResult>

setRight

public void setRight(ActionResult right)
Specified by:
setRight in interface BinaryTree<ActionResult>

getLeft

public ActionResult getLeft()
Specified by:
getLeft in interface BinaryTree<ActionResult>

getRight

public ActionResult getRight()
Specified by:
getRight in interface BinaryTree<ActionResult>

getTriplet

public Triplet getTriplet()

getTripletToRemove

public Triplet getTripletToRemove()

isType

public boolean isType(int type)

getType

public int getType()

compareTo

public int compareTo(ActionResult actionResult)
Specified by:
compareTo in interface java.lang.Comparable<ActionResult>