All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.primitives.XLong

java.lang.Object
   |
   +----gpsys.Primitive
           |
           +----gpsys.Terminal
                   |
                   +----gpsys.primitives.XLong

public class XLong
extends Terminal
	LONG XLong
 
XLong is a Terminal representing a variable of Type Long.

Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Type, Primitive, Terminal

Variable Index

 o lvalue
Holds the value of the variable.

Constructor Index

 o XLong()
Construct a new variable.

Method Index

 o evaluateLong(Individual)
Evaluates the variable, which returns its value.
 o instance()
Creates a copy of this Terminal.
 o set(long)
Sets the variable to the specified value.
 o toString()
Creates a String representing this Terminal.

Variables

 o lvalue
 long lvalue
Holds the value of the variable.

Constructors

 o XLong
 public XLong()
Construct a new variable.

Methods

 o evaluateLong
 public final long evaluateLong(Individual i) throws EvaluationException
Evaluates the variable, which returns its value.

Parameters:
i - The variable being evaluated.
Returns:
A long which is the value of the variable.
Throws: EvaluationException
If there is an evaluation failure.
Overrides:
evaluateLong in class Terminal
 o set
 public final void set(long value)
Sets the variable to the specified value.

Parameters:
value - The value to be assigned to the variable.
 o instance
 public final Primitive instance()
Creates a copy of this Terminal.

Returns:
Actaully a reference to the same Terminal since there is no change in instance variables required.
Overrides:
instance in class Primitive
 o toString
 public String toString()
Creates a String representing this Terminal.

Returns:
A String containing the name of this Terminal.
Overrides:
toString in class Primitive

All Packages  Class Hierarchy  This Package  Previous  Next  Index