当前位置: 首页>>代码示例>>Java>>正文


Java AbstractChaoticSystem类代码示例

本文整理汇总了Java中com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem的典型用法代码示例。如果您正苦于以下问题:Java AbstractChaoticSystem类的具体用法?Java AbstractChaoticSystem怎么用?Java AbstractChaoticSystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AbstractChaoticSystem类属于com.archosResearch.jCHEKS.concept.chaoticSystem包,在下文中一共展示了AbstractChaoticSystem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isSameState

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Override
public boolean isSameState(AbstractChaoticSystem other) {
    ChaoticSystem otherSystem = (ChaoticSystem)other;
    
    Set<Integer> agentIDs = this.agents.keySet();
    for (Integer agentID : agentIDs) {
        Agent agent = this.agents.get(agentID);
        if (!otherSystem.agents.get(agentID).isSameState(agent)) return false;
    }
    return true;
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_ArchosResearchChaoticSystem,代码行数:12,代码来源:ChaoticSystem.java

示例2: decrypt_should_decrypt_the_message

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void decrypt_should_decrypt_the_message() throws NoSuchAlgorithmException, NoSuchPaddingException, EncrypterException, Exception {
    
    RijndaelEncrypter instance = new RijndaelEncrypter(); 
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(instance.getByteNeeded());
    byte[] key = chaoticSystem.getKey(instance.getByteNeeded());
    String result = instance.decrypt(this.encrypted, key);        
    assertEquals(result, this.decrypted);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:10,代码来源:RijndaelEncrypterTest.java

示例3: encrypt_should_encrypt_the_message

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void encrypt_should_encrypt_the_message() throws NoSuchAlgorithmException, NoSuchPaddingException, EncrypterException, Exception {
    
    RijndaelEncrypter instance = new RijndaelEncrypter();
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(instance.getByteNeeded());
    byte[] key = chaoticSystem.getKey(instance.getByteNeeded());
    String result = instance.encrypt(this.decrypted, key);
    assertEquals(result, this.encrypted);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:10,代码来源:RijndaelEncrypterTest.java

示例4: Contact

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
public Contact(ContactInfo contactInfo, AbstractCommunicator communicator, AbstractEncrypter encrypter, AbstractChaoticSystem sendingChaoticSystem, AbstractChaoticSystem receivingChaoticSystem) {
    this.contactInfo = contactInfo;
    this.communicator = communicator;
    this.encrypter = encrypter;
    this.sendingChaoticSystem = sendingChaoticSystem;
    this.receivingChaoticSystem = receivingChaoticSystem;
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:8,代码来源:Contact.java

示例5: getSendingChaoticSystem_should_return_the_chaoticSystem_of_the_contact

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void getSendingChaoticSystem_should_return_the_chaoticSystem_of_the_contact() throws Exception {
    AbstractChaoticSystem givenChaoticSystem = new StubChaoticSystem();
    Contact contact = new Contact(aliceContactInfo, new StubCommunicator(), new StubEncrypter(), givenChaoticSystem, new StubChaoticSystem());
    AbstractChaoticSystem receivedChaoticSystem = contact.getSendingChaoticSystem();
    assertEquals(givenChaoticSystem, receivedChaoticSystem);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:8,代码来源:ContactTest.java

示例6: getReceivingChaoticSystem_should_return_the_chaoticSystem_of_the_contact

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void getReceivingChaoticSystem_should_return_the_chaoticSystem_of_the_contact() throws Exception {
    AbstractChaoticSystem givenChaoticSystem = new StubChaoticSystem();
    Contact contact = new Contact(aliceContactInfo, new StubCommunicator(), new StubEncrypter(), new StubChaoticSystem(), givenChaoticSystem);
    AbstractChaoticSystem receivedChaoticSystem = contact.getReceivingChaoticSystem();
    assertEquals(givenChaoticSystem, receivedChaoticSystem);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:8,代码来源:ContactTest.java

示例7: isSameState

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Override
public boolean isSameState(AbstractChaoticSystem system) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_ArchosResearchChaoticSystem,代码行数:5,代码来源:ChaoticSystemMock.java

示例8: cloneSystem

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Override
public AbstractChaoticSystem cloneSystem() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:5,代码来源:MockChaoticSystem.java

示例9: testGenerateSecureAck

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void testGenerateSecureAck() throws Exception {
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(SecureAckGenerator.getKeyLength());
    String result = SecureAckGenerator.generateSecureAck(chaoticSystem.getKey(), message);
    assertEquals(result, messageChecked);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:7,代码来源:SecureAckGeneratorTest.java

示例10: testValidateSecureAck

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void testValidateSecureAck() throws Exception {
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(SecureAckGenerator.getKeyLength());
    assertTrue(SecureAckGenerator.validateSecureAck(chaoticSystem.getKey(), message, messageChecked));
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:6,代码来源:SecureAckGeneratorTest.java

示例11: testEncodeMessage

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void testEncodeMessage() throws Exception {
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(MessageChecker.getKeyLength());
    String result = MessageChecker.encodeMessage(chaoticSystem.getKey(), message);
    assertEquals(result, messageChecked);
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:7,代码来源:MessageCheckerTest.java

示例12: testValidateMessage

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Test
public void testValidateMessage() throws Exception {
    AbstractChaoticSystem chaoticSystem = new MockChaoticSystem(MessageChecker.getKeyLength());
    assertTrue(MessageChecker.validateMessage(chaoticSystem.getKey(), message, messageChecked));
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Encrypter,代码行数:6,代码来源:MessageCheckerTest.java

示例13: getSendingChaoticSystem

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
public AbstractChaoticSystem getSendingChaoticSystem() {
    return this.sendingChaoticSystem;
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:4,代码来源:Contact.java

示例14: getReceivingChaoticSystem

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
public AbstractChaoticSystem getReceivingChaoticSystem() {
    return this.receivingChaoticSystem;
}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:4,代码来源:Contact.java

示例15: cloneSystem

import com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem; //导入依赖的package包/类
@Override
public AbstractChaoticSystem cloneSystem() { return null;}
 
开发者ID:ancientwinds,项目名称:jCHEKS_Engine,代码行数:3,代码来源:StubChaoticSystem.java


注:本文中的com.archosResearch.jCHEKS.concept.chaoticSystem.AbstractChaoticSystem类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。