gecco.server.automaton
Class AutomatonReturnQueueSelective

java.lang.Object
  |
  +--gecco.server.automaton.AutomatonReturn
        |
        +--gecco.server.automaton.AutomatonReturnQueueSelective

public class AutomatonReturnQueueSelective
extends AutomatonReturn

This class represents a return from an automaton update call, that indicates that certain neighbours of the automaton should be inserted into the queue.

Author:
Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström

Field Summary
private  long[][] timeToExecutions
          Description of the Field
 
Fields inherited from class gecco.server.automaton.AutomatonReturn
event, neighboursTimeToExecution, selfTimeToExecution
 
Constructor Summary
AutomatonReturnQueueSelective(double[][] timeToExecutionsArray)
          Constructor for the AutomatonReturnQueueSelective object
AutomatonReturnQueueSelective(double[][] timeToExecutionsArray, UnitEvent unitEvent)
          Constructor for the AutomatonReturnQueueSelective object
 
Method Summary
 long[][] getTimeToExecutions()
          Gets the TimeToExecutions attribute of the AutomatonReturnQueueSelective object
 
Methods inherited from class gecco.server.automaton.AutomatonReturn
getNeighboursTimeToExecution, getSelfTimeToExecution, getUnitEvent, setUnitEvent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

timeToExecutions

private long[][] timeToExecutions
Description of the Field
Constructor Detail

AutomatonReturnQueueSelective

public AutomatonReturnQueueSelective(double[][] timeToExecutionsArray)
Constructor for the AutomatonReturnQueueSelective object
Parameters:
timeToExecutionsArray - The 3x3 array with the times for each neighbour (including the automaton itself).

AutomatonReturnQueueSelective

public AutomatonReturnQueueSelective(double[][] timeToExecutionsArray,
                                     UnitEvent unitEvent)
Constructor for the AutomatonReturnQueueSelective object
Parameters:
timeToExecutionsArray - The 3x3 array with the times for each neighbour (including the automaton itself).
unitEvent - A unit event for any units on the automaton.
Method Detail

getTimeToExecutions

public long[][] getTimeToExecutions()
Gets the TimeToExecutions attribute of the AutomatonReturnQueueSelective object
Returns:
The TimeToExecutions value