0.10.8-alpha
ca.uqac.lif.cep.Context Class Reference

Associative map used by processors to store persistent data. More...

Public Member Functions

 Context ()
 Creates a new empty context. More...
 
 Context (Context c)
 Creates a new context object from an existing one. More...
 
synchronized void putAll (Map<? extends String, ? extends Object > o)
 
synchronized Object get (Object key)
 
synchronized Object put (String key, Object value)
 
synchronized boolean containsKey (Object key)
 

Detailed Description

Associative map used by processors to store persistent data.

In addition, all operations on a Context object are synchronized.

Author
Sylvain Hallé
Since
0.3

Definition at line 31 of file Context.java.

Constructor & Destructor Documentation

◆ Context() [1/2]

ca.uqac.lif.cep.Context.Context ( )

Creates a new empty context.

Definition at line 41 of file Context.java.

◆ Context() [2/2]

ca.uqac.lif.cep.Context.Context ( Context  c)

Creates a new context object from an existing one.

This effectively creates a copy of the context passed as parameter.

Parameters
cThe context object to copy from

Definition at line 51 of file Context.java.

Member Function Documentation

◆ containsKey()

synchronized boolean ca.uqac.lif.cep.Context.containsKey ( Object  key)

Definition at line 83 of file Context.java.

◆ get()

synchronized Object ca.uqac.lif.cep.Context.get ( Object  key)

Definition at line 69 of file Context.java.

◆ put()

synchronized Object ca.uqac.lif.cep.Context.put ( String  key,
Object  value 
)

Definition at line 76 of file Context.java.

◆ putAll()

synchronized void ca.uqac.lif.cep.Context.putAll ( Map<? extends String, ? extends Object >  o)

Definition at line 62 of file Context.java.


The documentation for this class was generated from the following file: