public class Move<ModuleInstT extends AbstractModuleInst<?,?,?>,PlacementT>
extends Object
BlockPlacer
.Constructor and Description |
---|
Move(AbstractBlockPlacer<ModuleInstT,PlacementT> placer) |
Move(PlacementT site0,
PlacementT site1,
ModuleInstT block0,
ModuleInstT block1,
AbstractBlockPlacer<ModuleInstT,PlacementT> placer) |
Modifier and Type | Method and Description |
---|---|
ModuleInstT |
getBlock0() |
ModuleInstT |
getBlock1() |
int |
getDeltaCost() |
void |
setBlock0(ModuleInstT block0) |
void |
setBlock1(ModuleInstT block1) |
void |
setDeltaCost(int deltaCost) |
void |
setMove(PlacementT site0,
PlacementT site1,
ModuleInstT block0,
ModuleInstT block1) |
void |
setMove(PlacementT site0,
PlacementT site1,
ModuleInstT block0,
ModuleInstT block1,
PlacementT site1Previous) |
String |
toString() |
void |
undoMove() |
public Move(AbstractBlockPlacer<ModuleInstT,PlacementT> placer)
public Move(PlacementT site0, PlacementT site1, ModuleInstT block0, ModuleInstT block1, AbstractBlockPlacer<ModuleInstT,PlacementT> placer)
public void setMove(PlacementT site0, PlacementT site1, ModuleInstT block0, ModuleInstT block1, PlacementT site1Previous)
public void setMove(PlacementT site0, PlacementT site1, ModuleInstT block0, ModuleInstT block1)
public void undoMove()
public String toString()
toString
in class Object
public ModuleInstT getBlock0()
public void setBlock0(ModuleInstT block0)
block0
- the block0 to setpublic ModuleInstT getBlock1()
public void setBlock1(ModuleInstT block1)
block1
- the block1 to setpublic void setDeltaCost(int deltaCost)
public int getDeltaCost()