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 int
compareTo(IAction o)
boolean
equals(java.lang.Object o)
java.lang.String
getFrom()
Accesses the private field fromjava.lang.String
getTo()
Accesses the private field toit.unibo.ai.didattica.competition.tablut.domain.State.Turn
getTurn()
Accesses the private field turnint
getValue()
Accesses the private field valueint
hashCode()
void
setValue(int value)
Sets the value of the private field valuejava.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-