Module causal_data :: Class CcausalRelations
[hide private]
[frames] | no frames]

Class CcausalRelations

source code

This class encapsulates the clink layer in KAF/NAF

Instance Methods [hide private]
 
__get_node_causalRelations(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
 
add_clink(self, my_clink)
Adds a clink object to the layer
source code
Cclink
get_clinks(self)
Iterator that returns all the causalRelations in the layer
source code
xml Element
get_node(self)
Returns the node of the element
source code
 
remove_this_clink(self, clink_id)
Removes the clink for the given clink identifier
source code
 
to_kaf(self) source code
 
to_naf(self) source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create and empty one)) - this is the node of the element. If it is None it will create a new object

add_clink(self, my_clink)

source code 

Adds a clink object to the layer

Parameters:
  • my_clink (Cclink) - the clink object to be added

get_clinks(self)

source code 

Iterator that returns all the causalRelations in the layer

Returns: Cclink
list of causalRelations (iterator)

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

remove_this_clink(self, clink_id)

source code 

Removes the clink for the given clink identifier

Parameters:
  • clink_id (string) - the clink identifier to be removed