com.planet_ink.coffee_mud.Common.interfaces
Interface Manufacturer

All Superinterfaces:
java.lang.Cloneable, CMCommon, CMObject, java.lang.Comparable<CMObject>
All Known Implementing Classes:
DefaultManufacturer

public interface Manufacturer
extends CMCommon

A class for holding information about the manufacturer of electronics.


Method Summary
 double getEfficiencyPct()
          Returns a pct, from 0-2, to multiply by the power requirements of electronic items for certain purposes.
 MaskingLibrary.CompiledZMask getItemMask()
          Returns the item mask that describes what kind of items this manufacturer makes.
 java.lang.String getItemMaskStr()
          Returns the item mask that describes what kind of items this manufacturer makes.
 java.lang.String getManufactureredTypesList()
          Returns a comma-delimited list of the types of things this manufacturer will make.
 byte getMaxTechLevelDiff()
          Returns a positive difference from Max Tech Level-10.
 byte getMinTechLevelDiff()
          Returns a positive difference from Max Tech Level-10.
 double getReliabilityPct()
          Returns a pct, from 0-2, to multiply by the amt of damage taken, and the chance of failure, esp.
 java.lang.String getXml()
          Returns an Xml document representing this manufacturer.
 boolean isManufactureredType(Technical T)
          Returns whether the given item will be manufacturered by this manufacturer.
 void setEfficiencyPct(double pct)
          Sets a pct, from 0-2, to multiply by the power requirements of electronic items for certain purposes.
 void setItemMask(java.lang.String newMask)
          Sets the item mask that describes what kind of items this manufacturer makes.
 void setManufactureredTypesList(java.lang.String list)
          Sets the comma-delimited list of the types of things this manufacturer will make.
 void setMaxTechLevelDiff(byte max)
          Sets a positive difference from Max Tech Level-10.
 void setMinTechLevelDiff(byte min)
          Sets a positive difference from Max Tech Level-10.
 void setName(java.lang.String name)
          Sets the name of the manufacturer
 void setReliabilityPct(double pct)
          Sets a pct, from 0-2, to multiply by the amt of damage taken, and the chance of failure, esp.
 void setXml(java.lang.String xml)
          Sets an Xml document representing this manufacturer.
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, ID, initializeClass, name, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isManufactureredType

boolean isManufactureredType(Technical T)
Returns whether the given item will be manufacturered by this manufacturer.

Parameters:
T - the item type
Returns:
true if this manufacturer will do it

getManufactureredTypesList

java.lang.String getManufactureredTypesList()
Returns a comma-delimited list of the types of things this manufacturer will make.

Returns:
a comma-delimited list of the types of things this manufacturer will make.

setManufactureredTypesList

void setManufactureredTypesList(java.lang.String list)
Sets the comma-delimited list of the types of things this manufacturer will make.

Parameters:
list - the comma-delimited list of the types of things this manufacturer will make.

getMaxTechLevelDiff

byte getMaxTechLevelDiff()
Returns a positive difference from Max Tech Level-10. This is the maximum tech level this manufacturer can manage.

Returns:
a number from 0-10

setMaxTechLevelDiff

void setMaxTechLevelDiff(byte max)
Sets a positive difference from Max Tech Level-10. This is the maximum tech level this manufacturer can manage.

Parameters:
max - a number from 0-10

getMinTechLevelDiff

byte getMinTechLevelDiff()
Returns a positive difference from Max Tech Level-10. This is the minimum tech level this manufacturer can manage.

Returns:
a number from 0-10

setMinTechLevelDiff

void setMinTechLevelDiff(byte min)
Sets a positive difference from Max Tech Level-10. This is the minimum tech level this manufacturer will make.

Parameters:
min - a number from 0-10

setName

void setName(java.lang.String name)
Sets the name of the manufacturer

Parameters:
name - of the manufacturer

getEfficiencyPct

double getEfficiencyPct()
Returns a pct, from 0-2, to multiply by the power requirements of electronic items for certain purposes. A 1.0 means perfectly standard. A 2.0 means very inefficient. A 0.5 means super efficient.

Returns:
a pct, from 0-2

setEfficiencyPct

void setEfficiencyPct(double pct)
Sets a pct, from 0-2, to multiply by the power requirements of electronic items for certain purposes. A 1.0 means perfectly standard. A 2.0 means very inefficient. A 0.5 means super efficient.

Parameters:
pct - from 0-2

getReliabilityPct

double getReliabilityPct()
Returns a pct, from 0-2, to multiply by the amt of damage taken, and the chance of failure, esp. when damaged. A 1.0 means perfectly standard. A 2.0 means super-standard. A 0.5 means sub standard.

Returns:
a pct, from 0-2

setReliabilityPct

void setReliabilityPct(double pct)
Sets a pct, from 0-2, to multiply by the amt of damage taken, and the chance of failure, esp. when damaged. A 1.0 means perfectly standard. A 2.0 means super-standard. A 0.5 means sub standard.

Parameters:
pct - from 0-2

setItemMask

void setItemMask(java.lang.String newMask)
Sets the item mask that describes what kind of items this manufacturer makes.

Parameters:
newMask - the zapperMask
See Also:
MaskingLibrary

getItemMask

MaskingLibrary.CompiledZMask getItemMask()
Returns the item mask that describes what kind of items this manufacturer makes.

Returns:
the zapperMask, compiled
See Also:
MaskingLibrary

getItemMaskStr

java.lang.String getItemMaskStr()
Returns the item mask that describes what kind of items this manufacturer makes.

Returns:
the zapperMask, not compiled
See Also:
MaskingLibrary

getXml

java.lang.String getXml()
Returns an Xml document representing this manufacturer.

Returns:
an Xml document representing this manufacturer.

setXml

void setXml(java.lang.String xml)
Sets an Xml document representing this manufacturer. This will "build out" the manufacturer object.

Parameters:
xml - Xml document representing this manufacturer.