Fixed some debugging messages on factors

This commit is contained in:
Jeff Moser
2010-09-27 08:00:22 -04:00
parent 5cb1919c21
commit f816a766d7
6 changed files with 10 additions and 12 deletions

View File

@ -3,14 +3,12 @@ namespace Moserware\Skills\FactorGraphs;
class Message
{
private $_nameFormat;
private $_nameFormatArgs;
private $_name;
private $_value;
public function __construct($value = null, $nameFormat = null, $args = null)
public function __construct($value = null, $name = null)
{
$this->_nameFormat = $nameFormat;
$this->_nameFormatArgs = $args;
$this->_name = $name;
$this->_value = $value;
}
@ -21,7 +19,7 @@ class Message
public function __toString()
{
return $this->_nameFormat; //return (_NameFormat == null) ? base.ToString() : String.Format(_NameFormat, _NameFormatArgs);
return $this->_name;
}
}