bcds.phison.io
Class DemandTypesReader.DemandType

java.lang.Object
  extended by bcds.tools.Environ
      extended by bcds.phison.io.DemandTypesReader.DemandType
Enclosing class:
DemandTypesReader

public class DemandTypesReader.DemandType
extends Environ

DemandType associates a collection of key-value pairs to a demand id.

Data members are public but the id is final.


Field Summary
 java.lang.String id
          The demand id.
 java.lang.String tag
          A comma-separated sequence of key=value pairs which are inserted into the key=value map.
 
Constructor Summary
DemandTypesReader.DemandType(java.lang.String id)
          Creates a new instance with the given id.
DemandTypesReader.DemandType(java.lang.String id, java.lang.String tag)
          Creates a new instance with the given id, saves the tag value and inserts them into its key-value map.
 
Method Summary
 
Methods inherited from class bcds.tools.Environ
adaptTypes, containsKey, createPrefixedAliases, fromArgsString, fromArgsString, get, getBool, getBool, getDouble, getDouble, getInt, getInt, getStr, getStr, getTyped, keySet, put, readFromFile, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final java.lang.String id
The demand id.


tag

public java.lang.String tag
A comma-separated sequence of key=value pairs which are inserted into the key=value map. This tag is simply saved here, without change.

Constructor Detail

DemandTypesReader.DemandType

public DemandTypesReader.DemandType(java.lang.String id)
Creates a new instance with the given id.


DemandTypesReader.DemandType

public DemandTypesReader.DemandType(java.lang.String id,
                                    java.lang.String tag)
Creates a new instance with the given id, saves the tag value and inserts them into its key-value map. The values can be access through Environ.getStr(String), Environ.getInt(String) and other methods from Environ.