C# 클래스 CFGLib.Production

This class represents a Production
파일 보기 프로젝트 열기: ellisonch/CFGLib 1 사용 예제들

공개 메소드들

메소드 설명
Production ( Nonterminal lhs, Sentence rhs, double weight = 1.0 ) : System

Returns a new production.

Production ( Nonterminal lhs, Word rhsOnlyWord, double weight = 1.0 ) : System
Production ( string lhsName, Sentence rhs, double weight = 1.0 ) : System
Production ( string lhsName, Word rhsOnlyWord, double weight = 1.0 ) : System
ToCodeString ( ) : string
ToString ( ) : string
ToStringNoWeight ( ) : string
ValueEquals ( Production other ) : bool

Checks whether the productions have the same parts

비공개 메소드들

메소드 설명
DeepClone ( ) : Production

Returns a new Production with constituent pieces equivalent to this Production. The Rhs is a new Sentence, so that any piece of the new Production can be changed without changing the old Production.

IsUnit ( ) : bool

메소드 상세

Production() 공개 메소드

Returns a new production.
public Production ( Nonterminal lhs, Sentence rhs, double weight = 1.0 ) : System
lhs Nonterminal
rhs Sentence
weight double
리턴 System

Production() 공개 메소드

public Production ( Nonterminal lhs, Word rhsOnlyWord, double weight = 1.0 ) : System
lhs Nonterminal
rhsOnlyWord Word
weight double
리턴 System

Production() 공개 메소드

public Production ( string lhsName, Sentence rhs, double weight = 1.0 ) : System
lhsName string
rhs Sentence
weight double
리턴 System

Production() 공개 메소드

public Production ( string lhsName, Word rhsOnlyWord, double weight = 1.0 ) : System
lhsName string
rhsOnlyWord Word
weight double
리턴 System

ToCodeString() 공개 메소드

public ToCodeString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToStringNoWeight() 공개 메소드

public ToStringNoWeight ( ) : string
리턴 string

ValueEquals() 공개 메소드

Checks whether the productions have the same parts
public ValueEquals ( Production other ) : bool
other Production
리턴 bool