org.dbe.eve.simulator
Class RequestVector

java.lang.Object
  extended by org.dbe.eve.simulator.RequestVector

public class RequestVector
extends java.lang.Object

Author:
mokada A request vector object that UMDA can use to significantly reduce the size of the matrix. The EvESim does not make use of it.

Field Summary
private  java.util.Random random
           
private  boolean[] request
           
private  java.util.ArrayList<java.lang.Integer> requestIndices
           
private  int requestLength
           
 
Constructor Summary
RequestVector(int size)
           
RequestVector(ZeroOneMatrix matrix)
           
 
Method Summary
 java.util.ArrayList<java.lang.Integer> getIndices()
           
 int getLength()
           
 boolean[] getVector()
           
 void printVector()
           
 void printVectorFile(java.lang.String fileoutput)
           
 void randomRequest(double proportion)
           
 void readFile(java.lang.String fileinput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

private boolean[] request

random

private java.util.Random random

requestLength

private int requestLength

requestIndices

private java.util.ArrayList<java.lang.Integer> requestIndices
Constructor Detail

RequestVector

public RequestVector(int size)

RequestVector

public RequestVector(ZeroOneMatrix matrix)
Method Detail

readFile

public void readFile(java.lang.String fileinput)

randomRequest

public void randomRequest(double proportion)

printVector

public void printVector()

printVectorFile

public void printVectorFile(java.lang.String fileoutput)

getIndices

public java.util.ArrayList<java.lang.Integer> getIndices()

getLength

public int getLength()

getVector

public boolean[] getVector()