FileDocCategorySizeDatePackage
RMIChessMoveImpl.javaAPI DocExample1116Sat Jan 31 23:45:54 GMT 1998dcj.examples.message

RMIChessMoveImpl

public class RMIChessMoveImpl extends Object implements RMIChessMove, Remote
Source code from "Java Distributed Computing", by Jim Farley. Class: RMIChessMoveImpl Example: 6-19 Description: Server implementation of the RMI-based chess move object.

Fields Summary
String
fromPos
String
toPos
boolean
checkFlag
Constructors Summary
public RMIChessMoveImpl()

    fromPos = null;
    toPos = null;
    checkFlag = false;
  
public RMIChessMoveImpl(String from, String to, boolean ckFlag)

    fromPos = from;
    toPos = to;
    checkFlag = ckFlag;
  
Methods Summary
public booleancheckFlag()

    return checkFlag;
  
public java.lang.Stringfrom()

    return fromPos;
  
public voidsetCheckFlag(boolean f)

    checkFlag = f;
  
public voidsetFrom(java.lang.String f)

    fromPos = f;
  
public voidsetTo(java.lang.String t)

    toPos = t;
  
public java.lang.Stringto()

    return toPos;