org.zilonis.network.production
Class ActionResult
java.lang.Object
org.zilonis.util.MultiListElement
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ActionResult
public ActionResult(Scope scope,
int type,
Triplet triplet,
int priority)
ActionResult
public ActionResult(Scope scope,
int type,
Triplet triplet,
Triplet tripletToRemove,
int priority)
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>