Package b2p.state.bitboard.bitset
Class BitSetAction
- java.lang.Object
-
- b2p.state.bitboard.bitset.BitSetAction
-
-
Constructor Summary
Constructors Constructor Description BitSetAction(java.lang.String from, java.lang.String to, it.unibo.ai.didattica.competition.tablut.domain.State.Turn turn)Constructor for the BitSetAction ClassBitSetAction(java.lang.String from, java.lang.String to, it.unibo.ai.didattica.competition.tablut.domain.State.Turn turn, int value)Constructor for BitSetAction Class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IAction o)booleanequals(java.lang.Object o)java.lang.StringgetFrom()Accesses the private field fromjava.lang.StringgetTo()Accesses the private field toit.unibo.ai.didattica.competition.tablut.domain.State.TurngetTurn()Accesses the private field turnintgetValue()Accesses the private field valueinthashCode()voidsetValue(int value)Sets the value of the private field valuejava.lang.StringtoString()
-
-
-
Constructor Detail
-
BitSetAction
public BitSetAction(java.lang.String from, java.lang.String to, it.unibo.ai.didattica.competition.tablut.domain.State.Turn turn)Constructor for the BitSetAction Class- Parameters:
from- the starting positionto- the final positionturn- the current turn- See Also:
State.Turn
-
BitSetAction
public BitSetAction(java.lang.String from, java.lang.String to, it.unibo.ai.didattica.competition.tablut.domain.State.Turn turn, int value)Constructor for BitSetAction Class- Parameters:
from- the starting positionto- the final positionturn- the current turnvalue- the heuristic value- See Also:
State.Turn
-
-
Method Detail
-
getFrom
public java.lang.String getFrom()
Accesses the private field from
-
getTo
public java.lang.String getTo()
Accesses the private field to
-
getTurn
public it.unibo.ai.didattica.competition.tablut.domain.State.Turn getTurn()
Accesses the private field turn
-
getValue
public int getValue()
Accesses the private field value
-
setValue
public void setValue(int value)
Sets the value of the private field value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-