public class Act extends Vector<String> implements Comparable<Act>
Title:
Description:
Copyright: Copyright 2003-2014, University of Calgary
Modifier and Type | Field and Description |
---|---|
private static CasaLispOperator |
ACT
Lisp operator: (ACT string ...)
Create a MessageEventDescriptor object. |
private static CasaLispOperator |
ACT__ACTION_AT
Lisp operator: (ACT.ACTION_AT ACT INDEX)
Attempt to join the cooperation domain specified by the parameter URL. |
private static CasaLispOperator |
ACT__SIZE
Lisp operator: (ACT.SIZE ACT INDEX)
Attempt to join the cooperation domain specified by the parameter URL. |
private static CasaLispOperator |
ACT2LIST
Lisp operator: (ACT2LIST ACT)
Attempt to join the cooperation domain specified by the parameter URL. |
static CasaLispOperator |
ACT2STRING
Lisp operator: (ACT2STRING ACT)
Attempt to join the cooperation domain specified by the parameter URL. |
private static long |
serialVersionUID |
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
Act(List<String> p0)
Constructs an Act list using from the list of identifiers.
|
Act(String name)
Constructs an Act list using "x|y|z" syntax.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Act o) |
static Act |
DuplicateAndPop(Act act)
Creates a new Act out of act and pops the top element off the top.
|
static Act |
DuplicateAndPop(Act act,
int n)
Creates a new Act out of act and pops n takens off the top.
|
static Act |
DuplicateAndPush(Act act,
String... tokens)
Creates a new Act out of act and pushes tokens onto it.
|
protected void |
fixNulls() |
void |
fromString(String name)
rebuilds this Act list using "x|y|z" syntax.
|
static void |
main(String[] args) |
String |
peek()
Returns the top element of the stack
|
Act |
pop()
Pops the top element off the stack
|
private void |
prettifyAndAppend(StringBuffer buf,
String string) |
Act |
push(String token)
Pushes the parameter String onto the stack
|
String |
toString() |
String |
toStringSimplify(int numberToIgnore)
Returns a String-formatted version of the Act stack.
|
protected boolean |
validate() |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, stream
private static final long serialVersionUID
private static final CasaLispOperator ACT
private static final CasaLispOperator ACT2LIST
private static final CasaLispOperator ACT__ACTION_AT
private static final CasaLispOperator ACT__SIZE
public static final CasaLispOperator ACT2STRING
public Act(String name)
name
- a string containing legal Act names separated by "|"spublic Act(List<String> p0)
name
- a string containing legal Act names separated by "|"sprotected boolean validate()
protected void fixNulls()
public void fromString(String name)
name
- a string containing legal Act names separated by "|"spublic String toStringSimplify(int numberToIgnore)
numberToIgnore
- number of prefix elements to skip, -ve number returns the last element onlyprivate void prettifyAndAppend(StringBuffer buf, String string)
public Act push(String token)
token
- public Act pop()
public String peek()
public static Act DuplicateAndPush(Act act, String... tokens)
act
- tokens
- public static Act DuplicateAndPop(Act act, int n)
act
- n
- the number of tokens to pop.public static Act DuplicateAndPop(Act act)
act
- DuplicateAndPop(Act, int)
public static void main(String[] args)
public int compareTo(Act o)
compareTo
in interface Comparable<Act>