legacy commit 4 (backlog)

This commit is contained in:
cs-powell
2024-11-23 23:43:56 -05:00
parent 7678b4e1f9
commit d2156ae9bc
21 changed files with 7277 additions and 7 deletions

View File

@@ -0,0 +1,40 @@
import java.util.LinkedList;
public class MindQueue {
LinkedList<Action> q;
public MindQueue () {
q = new LinkedList<Action>();
}
public void push(Action e){
q.add(e);
}
public Action removeEvent(Action e){
Action temp = e;
q.remove(e);
return temp;
}
public Action pop() {
Vision v = new Vision();
if(q.isEmpty()) {
return v;
}
return q.remove();
}
public boolean isEmpty(){
return q.isEmpty();
}
}