Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogicalClock ¶
type LogicalClock interface { InternalEvent() GetTicks() int ExternalEvent(externalClockStr string) GetClockStr() string CompareClocks(requestClockStr string, externalClockStr string, externalId int) (int, error) }
func NewScalarClock ¶
func NewScalarClock(id int) LogicalClock
func NewVectorClock ¶
func NewVectorClock(id, numProcesses int) LogicalClock
type ScalarClock ¶
type ScalarClock struct {
// contains filtered or unexported fields
}
func (*ScalarClock) CompareClocks ¶
func (*ScalarClock) ExternalEvent ¶
func (c *ScalarClock) ExternalEvent(externalClockStr string)
func (*ScalarClock) GetClockStr ¶
func (c *ScalarClock) GetClockStr() string
func (*ScalarClock) GetTicks ¶
func (c *ScalarClock) GetTicks() int
func (*ScalarClock) InternalEvent ¶
func (c *ScalarClock) InternalEvent()
type VectorClock ¶
type VectorClock struct {
// contains filtered or unexported fields
}
func (*VectorClock) CompareClocks ¶
func (*VectorClock) ExternalEvent ¶
func (c *VectorClock) ExternalEvent(externalClockStr string)
func (*VectorClock) GetClockStr ¶
func (c *VectorClock) GetClockStr() string
func (*VectorClock) GetTicks ¶
func (c *VectorClock) GetTicks() int
func (*VectorClock) InternalEvent ¶
func (c *VectorClock) InternalEvent()
Click to show internal directories.
Click to hide internal directories.