-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
356690f
commit ab88a6b
Showing
18 changed files
with
165 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/main/java/ninjabrainbot/model/datastate/common/DetachedDomainModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package ninjabrainbot.model.datastate.common; | ||
|
||
import ninjabrainbot.event.ISubscribable; | ||
import ninjabrainbot.event.ObservableProperty; | ||
import ninjabrainbot.model.domainmodel.IDomainModel; | ||
import ninjabrainbot.model.domainmodel.IFundamentalComponent; | ||
import ninjabrainbot.model.domainmodel.IInferredComponent; | ||
|
||
public class DetachedDomainModel implements IDomainModel { | ||
|
||
ISubscribable<IDomainModel> whenModified = new ObservableProperty<>(); | ||
|
||
@Override | ||
public void registerFundamentalComponent(IFundamentalComponent<?, ?> fundamentalComponent) { | ||
} | ||
|
||
@Override | ||
public void registerInferredComponent(IInferredComponent<?> inferredComponent) { | ||
} | ||
|
||
@Override | ||
public <T> ISubscribable<T> createExternalEventFor(ISubscribable<T> subscribable) { | ||
return subscribable; | ||
} | ||
|
||
@Override | ||
public void checkWriteAccess() { | ||
} | ||
|
||
@Override | ||
public void acquireWriteLock() { | ||
} | ||
|
||
@Override | ||
public void releaseWriteLock() { | ||
} | ||
|
||
@Override | ||
public void reset() { | ||
} | ||
|
||
@Override | ||
public void undoUnderWriteLock() { | ||
} | ||
|
||
@Override | ||
public void redoUnderWriteLock() { | ||
} | ||
|
||
@Override | ||
public boolean isReset() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isFullyInitialized() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public ISubscribable<IDomainModel> whenModified() { | ||
return whenModified; | ||
} | ||
|
||
@Override | ||
public Runnable applyWriteLock(Runnable runnable) { | ||
return runnable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.