solar.impl
Class PlainEvent

java.lang.Object
  |
  +--solar.impl.AbstractAttributeRecord
        |
        +--solar.impl.PlainAttributeRecord
              |
              +--solar.impl.PlainEvent
All Implemented Interfaces:
Adu, AttributeRecord, Event, java.io.Serializable, SolarConstants
Direct Known Subclasses:
BufferedEvent

public class PlainEvent
extends PlainAttributeRecord
implements Event

An event with plain encoding of square brackets.

Version:
$Id: PlainEvent.java,v 1.7 2003/10/05 15:24:39 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class solar.impl.PlainAttributeRecord
 
Fields inherited from class solar.impl.AbstractAttributeRecord
_attributes
 
Fields inherited from interface solar.api.Event
EVENT_PLAIN, EVENT_SERIALIZED
 
Fields inherited from interface solar.SolarConstants
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID
 
Constructor Summary
protected PlainEvent()
          Constructs an empty plain event.
  PlainEvent(AttributeRecord ar)
          Constructs an event with a list of attributes.
  PlainEvent(Event aEvent)
          Constructs an event by copying from another one.
  PlainEvent(java.util.List aList)
          Constructs an event with a list of attributes.
  PlainEvent(java.lang.String rec)
          Constructs an event by parsing an encoded string.
 
Method Summary
 int getEncoding()
          Return the encoding type.
 byte[] toBytes()
          Return the byte array format of this ADU.
 
Methods inherited from class solar.impl.PlainAttributeRecord
equals, toString
 
Methods inherited from class solar.impl.AbstractAttributeRecord
getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface solar.api.AttributeRecord
equals, getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues
 
Methods inherited from interface solar.api.Adu
toString
 

Constructor Detail

PlainEvent

protected PlainEvent()
Constructs an empty plain event.


PlainEvent

public PlainEvent(java.lang.String rec)
           throws ParsingException
Constructs an event by parsing an encoded string.


PlainEvent

public PlainEvent(java.util.List aList)
Constructs an event with a list of attributes.


PlainEvent

public PlainEvent(AttributeRecord ar)
Constructs an event with a list of attributes.


PlainEvent

public PlainEvent(Event aEvent)
Constructs an event by copying from another one.

Method Detail

toBytes

public byte[] toBytes()
Description copied from interface: Adu
Return the byte array format of this ADU.

Specified by:
toBytes in interface Adu
Overrides:
toBytes in class PlainAttributeRecord

getEncoding

public int getEncoding()
Description copied from interface: Event
Return the encoding type.

Specified by:
getEncoding in interface Event