📄 joingenerator.java
字号:
package planet.simulate;
import planet.chord.*;
import planet.commonapi.Id;
/**
* @author Pedro Garc韆
* @author Carles Pairot
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class JoinGenerator implements IEventGenerator {
/* (non-Javadoc)
* @see planet.IEventGenerator#generate()
*/
public IEvent generate() {
Id id = new ChordId().setValues(ChordId.ONE_CHORD);
Id nodeId = new ChordId().setValues(ChordId.ONE_CHORD);
Event evt = new Event (id,nodeId,Globals.JOIN,1);
return evt;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -