@Override public WorkflowDataToken pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new WorkflowDataToken(pushOwner(localProcessName), index, dataRef, context); }
protected synchronized NamedNode nodeAt(int[] position) { if (root == null) { return null; } NamedNode result = root; int index = 0; while (index < position.length && result != null) { result = result.childAt(position[index++]); } return result; }
/** * Push the index array onto the owning process name and return the new Job * object. Does not modify this object, the method creates a new Job with * the modified index array and owning process * * @return */ @Override public Completion pushIndex() { return new Completion(getPushedOwningProcess(), new int[] {}, context); }
@Override public WorkflowDataToken popOwningProcess() throws ProcessIdentifierException { return new WorkflowDataToken(popOwner(), index, dataRef, context); }
@Override public Completion pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new Completion(pushOwner(localProcessName), index, context); }
@Override public Completion popOwningProcess() throws ProcessIdentifierException { return new Completion(popOwner(), index, context); }
/** * Does the location exist? * * @param location * @return whether the contents of the location are non null */ public synchronized boolean containsLocation(int[] location) { return (get(location) != null); }
/** * Get the job object at the specified index array * * @param location * @return Job at the specified location or null if no such job was found */ public synchronized Job get(int[] location) { NamedNode n = nodeAt(location); if (n == null) { return null; } return n.contents; }
@Override public WorkflowDataToken pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new WorkflowDataToken(pushOwner(localProcessName), index, dataRef, context); }
@Override public WorkflowDataToken popOwningProcess() throws ProcessIdentifierException { return new WorkflowDataToken(popOwner(), index, dataRef, context); }
/** * Push the index array onto the owning process name and return the new Job * object. Does not modify this object, the method creates a new Job with * the modified index array and owning process * * @return */ @Override public Completion pushIndex() { return new Completion(getPushedOwningProcess(), new int[] {}, context); }
@Override public Completion pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new Completion(pushOwner(localProcessName), index, context); }
@Override public Completion popOwningProcess() throws ProcessIdentifierException { return new Completion(popOwner(), index, context); }
/** * Does the location exist? * * @param location * @return whether the contents of the location are non null */ public synchronized boolean containsLocation(int[] location) { return (get(location) != null); }
protected synchronized NamedNode nodeAt(int[] position) { if (root == null) { return null; } NamedNode result = root; int index = 0; while (index < position.length && result != null) { result = result.childAt(position[index++]); } return result; }
/** * Get the job object at the specified index array * * @param location * @return Job at the specified location or null if no such job was found */ public synchronized Job get(int[] location) { NamedNode n = nodeAt(location); if (n == null) { return null; } return n.contents; }
@Override public WorkflowDataToken pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new WorkflowDataToken(pushOwner(localProcessName), index, dataRef, context); }
@Override public WorkflowDataToken popOwningProcess() throws ProcessIdentifierException { return new WorkflowDataToken(popOwner(), index, dataRef, context); }
/** * Push the index array onto the owning process name and return the new Job * object. Does not modify this object, the method creates a new Job with * the modified index array and owning process * * @return */ @Override public Completion pushIndex() { return new Completion(getPushedOwningProcess(), new int[] {}, context); }
protected synchronized NamedNode nodeAt(int[] position) { if (root == null) { return null; } NamedNode result = root; int index = 0; while (index < position.length && result != null) { result = result.childAt(position[index++]); } return result; }