|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractRemoteParameter
stella.parameter.ExposureCount
public class ExposureCount
This parameter provides the running number of an exposure within a target. It can be used to get different file-names per exposure on the same Unique.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
static String |
DEFBINDNAME
The default name of this value. |
static String |
DEFNAME
The default name of this value. |
static NumberFormat |
ef
The number format for running exposures. |
static String |
eq
A query operator for running exposures. |
static String |
EXP
The separator between unique ID and exposure counter. |
private int |
exposurecount
The exposure counter for this target. |
| Fields inherited from class stella.parameter.AbstractRemoteParameter |
|---|
DEFBIND, KEY_BIND |
| Fields inherited from class stella.parameter.AbstractParameter |
|---|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface stella.ErrorDependingParameter |
|---|
NAMING_EXTENSION |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
ExposureCount(Map<String,String> prop)
We are not allowed to change any properties. |
|
| Method Summary | |
|---|---|
Object |
get()
Gets the current unique name identifier. |
Object |
getForError(ErrorEvent ee)
Querying the unique parameter for an error returns the current unique number, advancing is only done by registering. |
String |
getUniqueExposure()
The exposure number as an extension. |
void |
init()
We scout for a file that hold the last unique values. |
boolean |
preserve()
On exit, we save our current state if the serialize property is set. |
void |
registerError(ErrorEvent ee)
If the error registered is a TargetPicked, we advance the
unique number. |
double |
rescanned(String key,
String old,
String newval)
We throw an illegal argument exception if export port changed |
boolean |
restore()
We restore our old value by reading the last date and target count from a serialization file. |
Object |
set(Object val)
Setting the unique number is only allowed vai a call to next, therefore this method throws an UnsupportedOperationException. |
| Methods inherited from class stella.parameter.AbstractRemoteParameter |
|---|
addRmiListener, bindToRegistry, exit, isValid, remoteGet, removeRmiListener, unbindFromRegistry |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.Parameter |
|---|
getFormatted, getName, getString |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Methods inherited from interface util.ExitCleaning |
|---|
exit |
| Methods inherited from interface util.Reloadable |
|---|
reload |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Field Detail |
|---|
public static final NumberFormat ef
public static final String eq
public static final String EXP
public static final String DEFNAME
public static final String DEFBINDNAME
private int exposurecount
| Constructor Detail |
|---|
public ExposureCount(Map<String,String> prop)
throws RemoteException
RemoteException| Method Detail |
|---|
public void init()
init in interface Initializableinit in class AbstractRemoteParameter
public double rescanned(String key,
String old,
String newval)
rescanned in interface Reloadablerescanned in class AbstractRemoteParameterpublic boolean restore()
restore in interface Preservingpublic boolean preserve()
preserve in interface Preservingpublic String getUniqueExposure()
public Object get()
get in interface Parameter
public Object set(Object val)
throws UnsupportedOperationException
set in interface ParameterUnsupportedOperationException - If this parameter is read-only.public void registerError(ErrorEvent ee)
TargetPicked, we advance the
unique number.
registerError in interface ErrorDependingParameterpublic Object getForError(ErrorEvent ee)
getForError in interface ErrorDependingParameterget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||