jfreerails.move
Interface ListMove

All Superinterfaces:
FreerailsSerializable, Move, java.io.Serializable
All Known Implementing Classes:
AddCargoBundleMove, AddItemToListMove, ChangeCargoBundleMove, ChangeItemInListMove, ChangeStationMove, ChangeTrainMove, ChangeTrainScheduleMove, RemoveCargoBundleMove, RemoveItemFromListMove

public interface ListMove
extends Move

This interface provides information about changes to the lists in the World database.

Author:
rob?

Method Summary
 FreerailsSerializable getAfter()
           
 FreerailsSerializable getBefore()
           
 int getIndex()
           
 KEY getKey()
           
 FreerailsPrincipal getPrincipal()
           
 
Methods inherited from interface jfreerails.move.Move
doMove, tryDoMove, tryUndoMove, undoMove
 

Method Detail

getKey

KEY getKey()
Returns:
the type of object which was changed

getBefore

FreerailsSerializable getBefore()
Returns:
the old item or null if not any.

getAfter

FreerailsSerializable getAfter()
Returns:
the new item or null if not any.

getIndex

int getIndex()
Returns:
the index of the item which changed.

getPrincipal

FreerailsPrincipal getPrincipal()