nenok.adapt
Class RemoteAdapter

java.lang.Object
  extended by nenok.adapt.RemoteAdapter
All Implemented Interfaces:
Adapter

public class RemoteAdapter
extends Object
implements Adapter

Refined adapter class for the processing of remote valuations.

Version:
$LastChangedRevision: 552 $
$LastChangedDate: 2008-03-26 14:17:19 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly

Constructor Summary
RemoteAdapter()
           
 
Method Summary
 Labeled combine(Labeled factor, Labeled... factors)
          Combination operation.
 int getCombinations()
           
 double getCommunicationCosts()
           
 int getInverses()
           
 int getMarginalizations()
           
 Labeled inverse(Labeled factor)
          Inverse operation.
 Labeled marginalize(Labeled factor, Domain dom)
          Marginalization operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAdapter

public RemoteAdapter()
Method Detail

combine

public Labeled combine(Labeled factor,
                       Labeled... factors)
                throws LCException
Description copied from interface: Adapter
Combination operation.

Specified by:
combine in interface Adapter
Parameters:
factor - The first factor of the combination. Important: in case of a remotely processed combination, this argument determined the processor which executes the combination.
factors - The remaining factors to be combined.
Returns:
The combination of all factors given as argument. The implementation of this combination should respect the array's order.
Throws:
LCException - Generic local computation exception.
See Also:
Adapter.combine(nenok.adapt.Labeled, nenok.adapt.Labeled[])

inverse

public Labeled inverse(Labeled factor)
                throws LCException
Description copied from interface: Adapter
Inverse operation.

Specified by:
inverse in interface Adapter
Parameters:
factor - The factor whose inverse has to be computed.
Returns:
The inverse of the factor.
Throws:
LCException - Generic local computation exception.
See Also:
Adapter.inverse(nenok.adapt.Labeled)

marginalize

public Labeled marginalize(Labeled factor,
                           Domain dom)
                    throws LCException
Description copied from interface: Adapter
Marginalization operation.

Specified by:
marginalize in interface Adapter
Parameters:
factor - The factor to be marginalized.
dom - The domain onto the marginalization is performed.
Returns:
The marginal of the argument relativ to the given domain.
Throws:
LCException - Generic local computation exception.
See Also:
Adapter.marginalize(nenok.adapt.Labeled, nenok.va.Domain)

getCommunicationCosts

public double getCommunicationCosts()
Returns:
The communication costs that came up until now.

getCombinations

public int getCombinations()
Specified by:
getCombinations in interface Adapter
Returns:
Returns the number of combinations.
See Also:
Adapter.getCombinations()

getInverses

public int getInverses()
Specified by:
getInverses in interface Adapter
Returns:
Returns the number of inverses.
See Also:
Adapter.getInverses()

getMarginalizations

public int getMarginalizations()
Specified by:
getMarginalizations in interface Adapter
Returns:
Returns the number of marginalizations.
See Also:
Adapter.getMarginalizations()