aa.core
Class Contract

java.lang.Object
  extended byaa.core.Contract
All Implemented Interfaces:
java.io.Serializable

public class Contract
extends java.lang.Object
implements java.io.Serializable

This class represents a contract

Author:
xinghuizhao
See Also:
Serialized Form

Field Summary
(package private)  long m_lPrice
           
(package private)  long m_lTicks
           
(package private)  long m_lTicksRate
           
 
Constructor Summary
Contract()
          Creates a new instance of Contract This is the contract for the root cyberorg, which gets all resources in system
Contract(long p_lTicks, long p_lTicksRate, long p_lPrice)
          Creates new instance of Contract using parameters
 
Method Summary
 long getPrice()
           
 long getTicks()
           
 long getTicksRate()
           
 java.lang.String toString()
          Returns to a string representing the contract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_lTicks

long m_lTicks

m_lTicksRate

long m_lTicksRate

m_lPrice

long m_lPrice
Constructor Detail

Contract

public Contract()
Creates a new instance of Contract This is the contract for the root cyberorg, which gets all resources in system


Contract

public Contract(long p_lTicks,
                long p_lTicksRate,
                long p_lPrice)
Creates new instance of Contract using parameters

Method Detail

getTicks

public long getTicks()
Returns:
Ticks

getTicksRate

public long getTicksRate()
Returns:
TicksRate

getPrice

public long getPrice()
Returns:
Price

toString

public java.lang.String toString()
Returns to a string representing the contract