genopt.db
Class MessageManager

java.lang.Object
  extended by genopt.db.MessageManager
Direct Known Subclasses:
InfoManager, WarningManager

public class MessageManager
extends java.lang.Object

Object for collecting messages that occur during the optimization.

This project was carried out at:

and supported by

GenOpt Copyright (c) 1998-2011, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

Version:
GenOpt(R) 3.1.0 (December 8, 2011)

Author:
Michael Wetter

Field Summary
private  int ARRAYINCREMENT
          Constant for increasing the array size
private  int arrSiz
          current size of array
private  GenOpt go
          reference to GenOpt object (used to print messages)
protected  java.lang.String kind
          indicator whether this objects collects info or warnings
private static java.lang.String LS
          System dependent line separator
private  java.lang.String[] mes
          array with the messages
private  int numOfMes
          1-based counter for number of message
 
Constructor Summary
MessageManager(GenOpt genOptRef)
          Constructor
 
Method Summary
 java.lang.String getMessages()
          gets a String with all messages
 int getNumberOfMessages()
          gets a the number of messages
private  void increaseArraySize()
          increases the array size
 void setMessage(java.lang.String message)
          sets a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LS

private static final java.lang.String LS
System dependent line separator


ARRAYINCREMENT

private final int ARRAYINCREMENT
Constant for increasing the array size

See Also:
Constant Field Values

go

private GenOpt go
reference to GenOpt object (used to print messages)


mes

private java.lang.String[] mes
array with the messages


arrSiz

private int arrSiz
current size of array


numOfMes

private int numOfMes
1-based counter for number of message


kind

protected java.lang.String kind
indicator whether this objects collects info or warnings

Constructor Detail

MessageManager

public MessageManager(GenOpt genOptRef)
Constructor

Parameters:
genOptRef - reference to GenOpt object
Method Detail

setMessage

public void setMessage(java.lang.String message)
sets a message

Parameters:
message - the message

getMessages

public java.lang.String getMessages()
gets a String with all messages

Returns:
String with all messages

getNumberOfMessages

public int getNumberOfMessages()
gets a the number of messages

Returns:
the number of messages

increaseArraySize

private void increaseArraySize()
increases the array size