rails.game
Interface CompanyTypeI

All Superinterfaces:
ConfigurableComponentI
All Known Implementing Classes:
CompanyType

public interface CompanyTypeI
extends ConfigurableComponentI

The interface for StockSpaceType.


Field Summary
static java.lang.String ALL_CLOSE_TAG
          The name of the XML tag for the "AllClose" tag.
static java.lang.String AUCTION_TAG
          The name of the XML tag for the "NoCertLimit" property.
static java.lang.String CLASS_TAG
          The name of the XML attribute for the company type's class name.
static java.lang.String ELEMENT_ID
          The name of the XML tag used to configure a company type.
static java.lang.String NAME_TAG
          The name of the XML attribute for the company type's name.
 
Method Summary
 CompanyI createCompany(java.lang.String name, Tag tag)
           
 int getCapitalisation()
           
 java.lang.String getClassName()
           
 java.util.List<CompanyI> getCompanies()
           
 CompanyI getDummyCompany()
           
 java.lang.String getName()
           
 void setCapitalisation(int mode)
           
 void setCapitalisation(java.lang.String mode)
           
 
Methods inherited from interface rails.game.ConfigurableComponentI
configureFromXML, finishConfiguration
 

Field Detail

ELEMENT_ID

static final java.lang.String ELEMENT_ID
The name of the XML tag used to configure a company type.

See Also:
Constant Field Values

NAME_TAG

static final java.lang.String NAME_TAG
The name of the XML attribute for the company type's name.

See Also:
Constant Field Values

CLASS_TAG

static final java.lang.String CLASS_TAG
The name of the XML attribute for the company type's class name.

See Also:
Constant Field Values

AUCTION_TAG

static final java.lang.String AUCTION_TAG
The name of the XML tag for the "NoCertLimit" property.

See Also:
Constant Field Values

ALL_CLOSE_TAG

static final java.lang.String ALL_CLOSE_TAG
The name of the XML tag for the "AllClose" tag.

See Also:
Constant Field Values
Method Detail

createCompany

CompanyI createCompany(java.lang.String name,
                       Tag tag)
                       throws ConfigurationException
Throws:
ConfigurationException

getName

java.lang.String getName()
Returns:
name

getClassName

java.lang.String getClassName()
Returns:
class name

getCompanies

java.util.List<CompanyI> getCompanies()

setCapitalisation

void setCapitalisation(int mode)

setCapitalisation

void setCapitalisation(java.lang.String mode)

getCapitalisation

int getCapitalisation()

getDummyCompany

CompanyI getDummyCompany()