Module temporal_data :: Class CtemporalRelations
[hide private]
[frames] | no frames]

Class CtemporalRelations

source code

This class encapsulates the tlink layer in KAF/NAF

Instance Methods [hide private]
 
__get_node_predicateAnchors(self) source code
 
__get_node_temporalRelations(self) source code
 
__init__(self, node=None)
Constructor of the object
source code
 
__str__(self) source code
 
add_predicateAnchor(self, my_predAnch)
Adds a predAnch object to the layer
source code
 
add_tlink(self, my_tlink)
Adds a tlink object to the layer
source code
xml Element
get_node(self)
Returns the node of the element
source code
CpredicateAnchor
get_predicateAnchors(self)
Iterator that returns all the temporalRelation anchors in the layer
source code
Ctlink
get_tlinks(self)
Iterator that returns all the temporalRelations in the layer
source code
 
remove_this_predicateAnchor(self, predAnch_id)
Removes the predicate anchor for the given predicate anchor identifier
source code
 
remove_this_tlink(self, tlink_id)
Removes the tlink for the given tlink 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_predicateAnchor(self, my_predAnch)

source code 

Adds a predAnch object to the layer

Parameters:
  • my_predAnch (CpredAnch) - the predAnc object to be added

add_tlink(self, my_tlink)

source code 

Adds a tlink object to the layer

Parameters:
  • my_tlink (Ctlink) - the tlink object to be added

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_predicateAnchors(self)

source code 

Iterator that returns all the temporalRelation anchors in the layer

Returns: CpredicateAnchor
list of temporalRelations (iterator)

get_tlinks(self)

source code 

Iterator that returns all the temporalRelations in the layer

Returns: Ctlink
list of temporalRelations (iterator)

remove_this_predicateAnchor(self, predAnch_id)

source code 

Removes the predicate anchor for the given predicate anchor identifier

Parameters:
  • predAnch_id (string) - the predicate anchor identifier to be removed

remove_this_tlink(self, tlink_id)

source code 

Removes the tlink for the given tlink identifier

Parameters:
  • tlink_id (string) - the tlink identifier to be removed