edu::tum::cs::srldb::Object Class Reference

Inheritance diagram for edu::tum::cs::srldb::Object:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addTo (Database db) throws DDException
void BLOGprintFacts (PrintStream out) throws DDException
void commit () throws DDException
String getConstantName ()
Link getLink (String linkName)
Link link (String linkName, Object[] otherObjects) throws DDException
Link link (String linkName, Object otherObj) throws DDException
void MLNprintFact (String attribName, PrintStream out) throws DDException
void MLNprintFacts (PrintStream out) throws DDException
 Object (Database database, String objTypeName, String constantName)
 Object (Database database, String objTypeName)
String objType ()
String toString ()

Protected Member Functions

 Object (Database database)

Protected Attributes

String constantName = null
HashMap< String, Linklinks
String objTypeName

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

Definition at line 12 of file Object.java.


Constructor & Destructor Documentation

edu::tum::cs::srldb::Object::Object ( Database  database  )  [inline, protected]

creates an object for the given database; Since a type name is not provided but is determined from the actual class name, this constructor cannot be used directly

Parameters:
database the database the object is to be part of (upon commit)

Definition at line 25 of file Object.java.

edu::tum::cs::srldb::Object::Object ( Database  database,
String  objTypeName 
) [inline]

creates an object of the given type name

Parameters:
database the database the object is to be part of (upon commit)
objTypeName the type name

Definition at line 35 of file Object.java.

edu::tum::cs::srldb::Object::Object ( Database  database,
String  objTypeName,
String  constantName 
) [inline]

Definition at line 41 of file Object.java.


Member Function Documentation

void edu::tum::cs::srldb::Object::addTo ( Database  db  )  throws DDException [inline]

adds the object and all attached links to the given database

Parameters:
db 
Exceptions:
DDException 

Definition at line 148 of file Object.java.

void edu::tum::cs::srldb::Object::BLOGprintFacts ( PrintStream  out  )  throws DDException [inline]

Definition at line 118 of file Object.java.

void edu::tum::cs::srldb::Object::commit (  )  throws DDException [inline]

adds the object and all attached links to the database this object is associated with

Exceptions:
DDException 

Definition at line 139 of file Object.java.

String edu::tum::cs::srldb::Object::getConstantName (  )  [inline]
Returns:
a string, i.e. a constant name, that (uniquely) identifies this object in an MLN database

Implements edu::tum::cs::srldb::IRelationArgument.

Definition at line 83 of file Object.java.

Link edu::tum::cs::srldb::Object::getLink ( String  linkName  )  [inline]

Definition at line 166 of file Object.java.

Link edu::tum::cs::srldb::Object::link ( String  linkName,
Object[]  otherObjects 
) throws DDException [inline]

links this object to several other objects

Parameters:
linkName the name of the link/relation
otherObjects the objects to link to
Returns:
a reference to the newly created link object
Exceptions:
DDException 

Definition at line 69 of file Object.java.

Link edu::tum::cs::srldb::Object::link ( String  linkName,
Object  otherObj 
) throws DDException [inline]

links this object to another object

Parameters:
linkName the name of the link/relation
otherObj the object to link to
Returns:
a reference to the newly created link object
Exceptions:
DDException 

Definition at line 53 of file Object.java.

void edu::tum::cs::srldb::Object::MLNprintFact ( String  attribName,
PrintStream  out 
) throws DDException [inline]

Definition at line 100 of file Object.java.

void edu::tum::cs::srldb::Object::MLNprintFacts ( PrintStream  out  )  throws DDException [inline]

Definition at line 94 of file Object.java.

String edu::tum::cs::srldb::Object::objType (  )  [inline]

gets the object type name for this object

Returns:
the object type name; class name by default (unless overridden during construction)

Definition at line 131 of file Object.java.

String edu::tum::cs::srldb::Object::toString (  )  [inline]

Definition at line 90 of file Object.java.


Member Data Documentation

String edu::tum::cs::srldb::Object::constantName = null [protected]

Definition at line 17 of file Object.java.

HashMap<String, Link> edu::tum::cs::srldb::Object::links [protected]

Definition at line 15 of file Object.java.

Definition at line 16 of file Object.java.

final long edu::tum::cs::srldb::Object::serialVersionUID = 1L [static, private]

Definition at line 14 of file Object.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:46 2013