public class KMeansDataObjectCompute extends BaseCompute
Constructor and Description |
---|
KMeansDataObjectCompute() |
KMeansDataObjectCompute(java.lang.String edgename,
int size,
int dim) |
KMeansDataObjectCompute(java.lang.String edgename,
int dsize,
int parallel,
int dim)
The constructor to receive the edge name, data size, parallelism, dimension as an argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(IMessage message)
Execute with an incoming message
|
int |
getDatasize() |
int |
getDimension() |
java.lang.String |
getEdgeName() |
int |
getParallel() |
void |
prepare(Config cfg,
TaskContext context)
Prepare the task to be executed
|
void |
setDatasize(int datasize) |
void |
setDimension(int dimension) |
void |
setEdgeName(java.lang.String edgeName) |
void |
setParallel(int parallel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endExecute
public KMeansDataObjectCompute()
public KMeansDataObjectCompute(java.lang.String edgename, int dsize, int parallel, int dim)
edgename
- dsize
- parallel
- dim
- public KMeansDataObjectCompute(java.lang.String edgename, int size, int dim)
public int getDatasize()
public void setDatasize(int datasize)
public int getDimension()
public void setDimension(int dimension)
public int getParallel()
public void setParallel(int parallel)
public java.lang.String getEdgeName()
public void setEdgeName(java.lang.String edgeName)
public boolean execute(IMessage message)
ICompute
public void prepare(Config cfg, TaskContext context)
INode