se.sics.tasim.props
Class Alert

java.lang.Object
  extended by se.sics.tasim.props.Alert
All Implemented Interfaces:
java.io.Serializable, Transportable

public class Alert
extends java.lang.Object
implements Transportable, java.io.Serializable

Alert is used for sending administrative messages to the user behind external agents. Example of usage is when the agent is using an unsupported communication protocol with the server. An alert message is then sent with information about the problem before the connection is terminated.

Warning: serialized objects of this class might not be compatible with future versions. Only use serialization of this class for temporary storage or RMI using the same version of the class.

See Also:
Serialized Form

Constructor Summary
Alert()
           
Alert(int priority, java.lang.String title, java.lang.String message)
           
Alert(java.lang.String title, java.lang.String message)
           
 
Method Summary
 java.lang.String getMessage()
           
 int getPriority()
           
 java.lang.String getTitle()
           
 java.lang.String getTransportName()
          Returns the transport name used for externalization.
 void read(TransportReader reader)
          Reads the state for this transportable from the specified reader.
 java.lang.String toString()
           
 void write(TransportWriter writer)
          Writes the state for this transportable to the specified writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alert

public Alert()

Alert

public Alert(java.lang.String title,
             java.lang.String message)

Alert

public Alert(int priority,
             java.lang.String title,
             java.lang.String message)
Method Detail

getPriority

public int getPriority()

getTitle

public java.lang.String getTitle()

getMessage

public java.lang.String getMessage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTransportName

public java.lang.String getTransportName()
Returns the transport name used for externalization.

Specified by:
getTransportName in interface Transportable

read

public void read(TransportReader reader)
          throws java.text.ParseException
Description copied from interface: Transportable
Reads the state for this transportable from the specified reader.

Specified by:
read in interface Transportable
Parameters:
reader - the reader to read data from
Throws:
java.text.ParseException - if a parse error occurs

write

public void write(TransportWriter writer)
Description copied from interface: Transportable
Writes the state for this transportable to the specified writer.

Specified by:
write in interface Transportable
Parameters:
writer - the writer to write data to


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.